GMP Native Interface for .NET
mpq_t Conversion (String to mpq_t) |
Namespace: Math.Gmp.Native
Assembly: Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)

public static implicit operator mpq_t ( string value )
Public Shared Widening Operator CType ( value As String ) As mpq_t
static implicit operator mpq_t^ ( String^ value )
F# does not support the declaration of new casting operators.
Parameters
- value
- Type: SystemString
A string value.
Return Value
Type: mpq_tAn mpq_t value.

The leading characters are used: 0x and 0X for hexadecimal, 0b and 0B for binary, 0 for octal, or decimal otherwise. Note that this is done separately for the numerator and denominator, so for instance 0xEF/100 is 239/100, whereas 0xEF/0x100 is 239/256.
