• Api Documentation
Show / Hide Table of Contents
  • System.Numerics
    • BigRational
      • Abs
      • Acos
      • Acosh
      • AcosPi
      • Addition
      • Asin
      • Asinh
      • AsinPi
      • Atan
      • Atan2
      • Atan2Pi
      • Atanh
      • AtanPi
      • BigRational
      • BitwiseOr
      • Cbrt
      • Ceiling
      • Clamp
      • CompareTo
      • CopySign
      • Cos
      • Cosh
      • CosPi
      • CreateChecked
      • CreateSaturating
      • CreateTruncating
      • Decrement
      • Division
      • Equality
      • Equals
      • Exp
      • Exp10
      • Exp10M1
      • Exp2
      • Exp2M1
      • Explicit
      • ExpM1
      • Factorial
      • Floor
      • GetHashCode
      • GreaterThan
      • GreaterThanOrEqual
      • Hypot
      • ILog10
      • ILog2
      • ILogB
      • Implicit
      • Increment
      • Inequality
      • IsInteger
      • IsNaN
      • LessThan
      • LessThanOrEqual
      • Log
      • Log10
      • Log10P1
      • Log2
      • Log2P1
      • LogP1
      • Max
      • MaxDigits
      • MaxMagnitude
      • MaxMagnitudeNumber
      • Min
      • MinMagnitude
      • MinMagnitudeNumber
      • Modulus
      • Multiply
      • NumDen
      • op_CheckedExplicit
      • Parse
      • Pi
      • Pow
      • Pow2
      • ReadFromBytes
      • RootN
      • Round
      • Sign
      • Sin
      • SinCos
      • SinCosPi
      • Sinh
      • SinPi
      • Sqrt
      • Subtraction
      • Tan
      • Tanh
      • TanPi
      • task_cpu
      • Tau
      • ToString
      • Truncate
      • TryFormat
      • TryParse
      • UnaryNegation
      • UnaryPlus
      • WriteToBytes
    • BigRational.CPU
      • abs
      • add
      • and
      • atan
      • bdi
      • cmp
      • cmpa
      • cmpi
      • CPU
      • dec
      • div
      • dup
      • equ
      • exp
      • fac
      • free
      • gcd
      • getd
      • getf
      • getr
      • gets
      • hash
      • idiv
      • imod
      • inc
      • inv
      • ipt
      • isi
      • lim
      • log
      • log2
      • lsb
      • mark
      • mod
      • msb
      • mul
      • neg
      • norm
      • or
      • pi
      • pop
      • popd
      • popi
      • popr
      • pow
      • push
      • rnd
      • shl
      • shr
      • sign
      • sin
      • sqr
      • sqrt
      • sub
      • swp
      • tor
      • tos
      • xor
    • BigRational.Integer
      • Abs
      • Add
      • Addition
      • BitwiseAnd
      • BitwiseOr
      • CompareTo
      • CreateChecked
      • CreateSaturating
      • CreateTruncating
      • Decrement
      • Divide
      • Division
      • DivRem
      • Equality
      • Equals
      • ExclusiveOr
      • Explicit
      • GetByteCount
      • GetHashCode
      • GreaterThan
      • GreaterThanOrEqual
      • GreatestCommonDivisor
      • Implicit
      • Increment
      • Inequality
      • Integer
      • IsEven
      • IsEvenInteger
      • IsNegative
      • IsOddInteger
      • IsOne
      • IsPositive
      • IsPow2
      • IsPowerOfTwo
      • IsZero
      • LeastCommonMultiple
      • LeftShift
      • LessThan
      • LessThanOrEqual
      • Log
      • Log10
      • Log2
      • Lsb
      • Max
      • MaxMagnitude
      • Min
      • MinMagnitude
      • MinusOne
      • ModPow
      • Modulus
      • Msb
      • Multiply
      • Multiply
      • Negate
      • One
      • OnesComplement
      • op_UnsignedRightShift
      • Parse
      • PopCount
      • Pow
      • Remainder
      • RightShift
      • RotateLeft
      • RotateRight
      • Shl
      • Shr
      • Sign
      • Subtract
      • Subtraction
      • ToByteArray
      • ToString
      • TrailingZeroCount
      • TryFormat
      • TryParse
      • TryWriteBytes
      • UnaryNegation
      • UnaryPlus
      • Zero
    • BigRational.SafeCPU
      • abs
      • add
      • and
      • atan
      • bdi
      • cmp
      • cmpa
      • cmpi
      • dec
      • div
      • dup
      • equ
      • exp
      • fac
      • free
      • gcd
      • getd
      • getf
      • getr
      • gets
      • hash
      • idiv
      • imod
      • inc
      • inv
      • ipt
      • isi
      • lim
      • log
      • log2
      • lsb
      • mark
      • mod
      • msb
      • mul
      • neg
      • norm
      • or
      • pi
      • pop
      • popd
      • popi
      • popr
      • pow
      • push
      • rnd
      • shl
      • shr
      • sign
      • sin
      • sqr
      • sqrt
      • sub
      • swp
      • tor
      • tos
      • xor
  • System.Numerics.Generic
    • Float<T>
      • Abs
      • Acos
      • Acosh
      • AcosPi
      • Addition
      • Asin
      • Asinh
      • AsinPi
      • Atan
      • Atan2
      • Atan2Pi
      • Atanh
      • AtanPi
      • BitCount
      • BitDecrement
      • BitIncrement
      • Cbrt
      • Ceiling
      • CompareTo
      • Cos
      • Cosh
      • CosPi
      • CreateChecked
      • CreateSaturating
      • CreateTruncating
      • Decrement
      • Division
      • E
      • Epsilon
      • Equality
      • Equals
      • Exp
      • Exp10
      • Exp2
      • Explicit
      • Float
      • Floor
      • FusedMultiplyAdd
      • GetHashCode
      • GreaterThan
      • GreaterThanOrEqual
      • Hypot
      • Ieee754Remainder
      • ILogB
      • Implicit
      • Increment
      • Inequality
      • IsEvenInteger
      • IsFinite
      • IsInfinity
      • IsInteger
      • IsNaN
      • IsNegative
      • IsNegativeInfinity
      • IsNormal
      • IsOddInteger
      • IsPositive
      • IsPositiveInfinity
      • IsPow2
      • IsRealNumber
      • IsSubnormal
      • LessThan
      • LessThanOrEqual
      • Log
      • Log10
      • Log2
      • Max
      • MaxDigits
      • MaxMagnitude
      • MaxMagnitudeNumber
      • MaxNumber
      • MaxValue
      • Min
      • MinMagnitude
      • MinMagnitudeNumber
      • MinNumber
      • MinValue
      • Modulus
      • Multiply
      • NaN
      • NegativeInfinity
      • NegativeZero
      • Parse
      • Pi
      • PositiveInfinity
      • Pow
      • Pow10
      • RootN
      • Round
      • ScaleB
      • Sign
      • Sin
      • SinCos
      • SinCosPi
      • Sinh
      • SinPi
      • Sqrt
      • Subtraction
      • Tan
      • Tanh
      • TanPi
      • Tau
      • ToString
      • Truncate
      • TryFormat
      • TryParse
      • UnaryNegation
      • UnaryPlus
    • Int<T>
      • Abs
      • Addition
      • BitwiseAnd
      • BitwiseOr
      • Clamp
      • CompareTo
      • CopySign
      • CreateChecked
      • CreateSaturating
      • CreateTruncating
      • Decrement
      • Division
      • DivRem
      • Equality
      • Equals
      • ExclusiveOr
      • Explicit
      • GetHashCode
      • GreaterThan
      • GreaterThanOrEqual
      • Implicit
      • Increment
      • Inequality
      • IsEvenInteger
      • IsNegative
      • IsOddInteger
      • IsPositive
      • IsPow2
      • LeadingZeroCount
      • LeftShift
      • LessThan
      • LessThanOrEqual
      • Log2
      • Max
      • MaxMagnitude
      • MaxValue
      • Min
      • MinMagnitude
      • MinValue
      • Modulus
      • Multiply
      • NegativeOne
      • One
      • OnesComplement
      • op_UnsignedRightShift
      • Parse
      • PopCount
      • RightShift
      • RotateLeft
      • RotateRight
      • Sign
      • Subtraction
      • ToString
      • TrailingZeroCount
      • TryFormat
      • TryParse
      • UnaryNegation
      • UnaryPlus
      • Zero
    • UInt<T>
      • Addition
      • BitwiseAnd
      • BitwiseOr
      • Clamp
      • CompareTo
      • CreateChecked
      • CreateSaturating
      • CreateTruncating
      • Decrement
      • Division
      • DivRem
      • Equality
      • Equals
      • ExclusiveOr
      • Explicit
      • GetHashCode
      • GreaterThan
      • GreaterThanOrEqual
      • Implicit
      • Increment
      • Inequality
      • IsEvenInteger
      • IsOddInteger
      • IsPow2
      • LeadingZeroCount
      • LeftShift
      • LessThan
      • LessThanOrEqual
      • Log2
      • Max
      • MaxValue
      • Min
      • MinValue
      • Modulus
      • Multiply
      • One
      • OnesComplement
      • op_UnsignedRightShift
      • Parse
      • PopCount
      • RightShift
      • RotateLeft
      • RotateRight
      • Sign
      • Subtraction
      • ToString
      • TrailingZeroCount
      • TryFormat
      • TryParse
      • UnaryPlus
      • Zero

Operator Explicit

Explicit(String to BigRational)

Defines an explicit conversion of a System.String object to a BigRational value.

Declaration
public static explicit operator BigRational(string value)
Parameters
Type Name Description
System.String 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.

Remarks

Shortcut for Parse allows simple syntax like:
var x = (BigRational)"1.23'456e+1000";

Explicit(BigRational to Byte)

Defines an explicit conversion of a BigRational number to a System.Byte value.

Declaration
public static explicit operator byte (BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Byte.

Returns
Type Description
System.Byte

The value of the current instance, converted to an System.Byte.

Explicit(BigRational to SByte)

Defines an explicit conversion of a BigRational number to a System.SByte value.

Declaration
public static explicit operator sbyte (BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.SByte.

Returns
Type Description
System.SByte

The value of the current instance, converted to an System.SByte.

Explicit(BigRational to Int16)

Defines an explicit conversion of a BigRational number to a System.Int16 value.

Declaration
public static explicit operator short (BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Int16.

Returns
Type Description
System.Int16

The value of the current instance, converted to an System.Int16.

Explicit(BigRational to UInt16)

Defines an explicit conversion of a BigRational number to a System.UInt16 value.

Declaration
public static explicit operator ushort (BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.UInt16.

Returns
Type Description
System.UInt16

The value of the current instance, converted to an System.UInt16.

Explicit(BigRational to Char)

Defines an explicit conversion of a BigRational number to a System.Char value.

Declaration
public static explicit operator char (BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Char.

Returns
Type Description
System.Char

The value of the current instance, converted to an System.Char.

Explicit(BigRational to Int32)

Defines an explicit conversion of a BigRational number to a System.Int32 value.

Declaration
public static explicit operator int (BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Int32.

Returns
Type Description
System.Int32

The value of the current instance, converted to an System.Int32.

Explicit(BigRational to UInt32)

Defines an explicit conversion of a BigRational number to a System.UInt32 value.

Declaration
public static explicit operator uint (BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.UInt32.

Returns
Type Description
System.UInt32

The value of the current instance, converted to an System.UInt32.

Explicit(BigRational to Int64)

Defines an explicit conversion of a BigRational number to a System.Int64 value.

Declaration
public static explicit operator long (BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Int64.

Returns
Type Description
System.Int64

The value of the current instance, converted to an System.Int64.

Explicit(BigRational to UInt64)

Defines an explicit conversion of a BigRational number to a System.UInt64 value.

Declaration
public static explicit operator ulong (BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.UInt64.

Returns
Type Description
System.UInt64

The value of the current instance, converted to an System.UInt64.

Explicit(BigRational to IntPtr)

Defines an explicit conversion of a BigRational number to a System.IntPtr value.

Declaration
public static explicit operator IntPtr(BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.IntPtr.

Returns
Type Description
System.IntPtr

The value of the current instance, converted to an System.IntPtr.

Explicit(BigRational to UIntPtr)

Defines an explicit conversion of a BigRational number to a System.UIntPtr value.

Declaration
public static explicit operator UIntPtr(BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.UIntPtr.

Returns
Type Description
System.UIntPtr

The value of the current instance, converted to an System.UIntPtr.

Explicit(BigRational to Half)

Defines an explicit conversion of a BigRational number to a System.Half value.

Declaration
public static explicit operator Half(BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Half.

Returns
Type Description
System.Half

The value of the current instance, converted to an System.Half.

Explicit(BigRational to Single)

Defines an explicit conversion of a BigRational number to a System.Single value.

Declaration
public static explicit operator float (BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Single.

Returns
Type Description
System.Single

The value of the current instance, converted to an System.Single.

Explicit(BigRational to Double)

Defines an explicit conversion of a BigRational number to a System.Double value.

Declaration
public static explicit operator double (BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Double.

Returns
Type Description
System.Double

The value of the current instance, converted to an System.Double.

Explicit(BigRational to Decimal)

Defines an explicit conversion of a BigRational number to a System.Decimal value.

Declaration
public static explicit operator Decimal(BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Decimal.

Returns
Type Description
System.Decimal

The value of the current instance, converted to an System.Decimal.

Explicit(BigRational to BigInteger)

Defines an explicit conversion of a BigRational number to a System.Numerics.BigInteger value.

Declaration
public static explicit operator BigInteger(BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Numerics.BigInteger.

Returns
Type Description
System.Numerics.BigInteger

The value of the current instance, converted to an System.Numerics.BigInteger.

Remarks

The result is truncated to integer by default.
Consider rounding the value before using Round(BigRational), Round(BigRational, Int32) or Round(BigRational, Int32, MidpointRounding) methods.

Explicit(BigRational to ReadOnlySpan<UInt32>)

Defines an explicit access to the internal data representation of a BigRational number.

Declaration
public static explicit operator ReadOnlySpan<uint>(BigRational value)
Parameters
Type Name Description
BigRational value

A BigRational number.

Returns
Type Description
System.ReadOnlySpan<System.UInt32>

Explicit(BigRational to Int128)

Defines an explicit conversion of a BigRational number to a System.Int128 value.

Declaration
public static explicit operator Int128(BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Int128.

Returns
Type Description
System.Int128

The value of the current instance, converted to an System.Int128.

Explicit(BigRational to UInt128)

Defines an explicit conversion of a BigRational number to a System.UInt128 value.

Declaration
public static explicit operator UInt128(BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.UInt128.

Returns
Type Description
System.UInt128

The value of the current instance, converted to an System.UInt128.

Explicit(BigRational to NFloat)

Defines an explicit conversion of a BigRational number to a System.Runtime.InteropServices.NFloat value.

Declaration
public static explicit operator NFloat(BigRational value)
Parameters
Type Name Description
BigRational value

The value to convert to a System.Runtime.InteropServices.NFloat.

Returns
Type Description
System.Runtime.InteropServices.NFloat

The value of the current instance, converted to an System.Runtime.InteropServices.NFloat.

In This Article
Back to top Generated by DocFX