Operator Implicit
Implicit(Int32 to BigRational)
Defines an implicit conversion of a System.Int32 object to a BigRational value.
Declaration
public static implicit operator BigRational(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(UInt32 to BigRational)
Defines an implicit conversion of a System.UInt32 object to a BigRational value.
Declaration
public static implicit operator BigRational(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(Int64 to BigRational)
Defines an implicit conversion of a System.Int64 object to a BigRational value.
Declaration
public static implicit operator BigRational(long value)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(UInt64 to BigRational)
Defines an implicit conversion of a System.UInt64 object to a BigRational value.
Declaration
public static implicit operator BigRational(ulong value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(Single to BigRational)
Defines an implicit conversion of a System.Single object to a BigRational value.
Declaration
public static implicit operator BigRational(float value)
Parameters
Type | Name | Description |
---|---|---|
System.Single | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is rounded to the number specified in the value parameter. |
Remarks
This function implicitly rounds to the precision of significant bits of System.Single.
This rounding is identical to the System.Decimal rounding of System.Single values during conversion.
For a bit-exact conversion see: BigRational(Single)
Implicit(Double to BigRational)
Defines an implicit conversion of a System.Double object to a BigRational value.
Declaration
public static implicit operator BigRational(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is rounded to the number specified in the value parameter. |
Remarks
This function implicitly rounds to the precision of significant bits of System.Double.
This rounding is identical to the System.Decimal rounding of System.Double values during conversion.
For a bit-exact conversion see: BigRational(Double)
Implicit(Decimal to BigRational)
Defines an implicit conversion of a System.Decimal object to a BigRational value.
Declaration
public static implicit operator BigRational(Decimal value)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(BigInteger to BigRational)
Defines an implicit conversion of a System.Numerics.BigInteger object to a BigRational value.
Declaration
public static implicit operator BigRational(BigInteger value)
Parameters
Type | Name | Description |
---|---|---|
System.Numerics.BigInteger | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(Int32 to Nullable<BigRational>)
Defines an implicit conversion of a System.Int32 object to a BigRational value.
Declaration
public static implicit operator Nullable<BigRational>(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
System.Nullable<BigRational> | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(Byte to BigRational)
Defines an implicit conversion of a System.Byte object to a BigRational value.
Declaration
public static implicit operator BigRational(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(SByte to BigRational)
Defines an implicit conversion of a System.SByte object to a BigRational value.
Declaration
public static implicit operator BigRational(sbyte value)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(UInt16 to BigRational)
Defines an implicit conversion of a System.UInt16 object to a BigRational value.
Declaration
public static implicit operator BigRational(ushort value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(Char to BigRational)
Defines an implicit conversion of a System.Char object to a BigRational value.
Declaration
public static implicit operator BigRational(char value)
Parameters
Type | Name | Description |
---|---|---|
System.Char | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(Int16 to BigRational)
Defines an implicit conversion of a System.Int16 object to a BigRational value.
Declaration
public static implicit operator BigRational(short value)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(IntPtr to BigRational)
Defines an implicit conversion of a System.IntPtr object to a BigRational value.
Declaration
public static implicit operator BigRational(IntPtr value)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(UIntPtr to BigRational)
Defines an implicit conversion of a System.UIntPtr object to a BigRational value.
Declaration
public static implicit operator BigRational(UIntPtr value)
Parameters
Type | Name | Description |
---|---|---|
System.UIntPtr | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(Half to BigRational)
Defines an implicit conversion of a System.Half object to a BigRational value.
Declaration
public static implicit operator BigRational(Half value)
Parameters
Type | Name | Description |
---|---|---|
System.Half | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(Int128 to BigRational)
Defines an implicit conversion of a System.Int128 object to a BigRational value.
Declaration
public static implicit operator BigRational(Int128 value)
Parameters
Type | Name | Description |
---|---|---|
System.Int128 | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(UInt128 to BigRational)
Defines an implicit conversion of a System.UInt128 object to a BigRational value.
Declaration
public static implicit operator BigRational(UInt128 value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt128 | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |
Implicit(NFloat to BigRational)
Defines an implicit conversion of a System.Runtime.InteropServices.NFloat object to a BigRational value.
Declaration
public static implicit operator BigRational(NFloat value)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.InteropServices.NFloat | value | The value to convert to a BigRational. |
Returns
Type | Description |
---|---|
BigRational | A BigRational number that is equivalent to the number specified in the value parameter. |