BigInt
Definitions
Convert x to a Float32.
Returns x clamped within the Float32 range min to max.
Convert x to a Float64.
Returns x clamped within the Float64 range min to max.
Convert x to an Int16.
Returns x clamped within the Int16 range min to max.
Convert x to an Int32.
Returns x clamped within the Int32 range min to max.
Convert x to an Int64.
Returns x clamped within the Int64 range min to max.
Convert x to an Int8.
Returns x clamped within the Int8 range min to max.
Returns x with the bit at position position cleared (to 0).
Returns x with the bit at position position flipped.
Parse the string s as an BigInt, leading or trailing whitespace is trimmed.
A successful parse is wrapped with Some(x), a parse failure is indicated by None.
Returns the greatest common non-negative divisor of x and y.
Returns the bit of x at position (either 0 or 1).
The bits of x have positions: 0 (rightmost bit), 1, 2, ...
Returns the Euclidean modulo of x and n.
The result is always non-negative.
Returns the remainder of x / n.
The result can be negative.
See also BigInt.modulo.
Returns x with the bits shifted right by y places
Returns x with the bit at position position set (to 1).
Convert x to an Option[Float32].
Returns Some(x as Float32) if the numeric value of x is within the range of Float32.
Warning: even if x is in the range of Float32 it may lose precision.
Returns None if the numeric value of x is outside the range of Float32
(i.e. 1.4E-45 to 3.4028235E38).
Convert x to an Option[Float64].
Returns Some(x as Float64) if the numeric value of x is within the range of Float32.
Warning: even if x is in the range of Float64 it may lose precision.
Returns None if the numeric value of x is outside the range of Float64
(i.e 4.9E-324 to 1.7976931348623157E308).
Convert x to an Option[Int16].
Returns Some(x as Int16) if the numeric value of x can be represented exactly.
Returns None if the numeric value of x is outside the range of Int16
(i.e. -32768 to 32767).
Convert x to an Option[Int32].
Returns Some(x as Int32) if the numeric value of x can be represented exactly.
Returns None if the numeric value of x is outside the range of Int32
(i.e. -2147483648 to 2147483647).
Convert x to an Option[Int64].
Returns Some(x as Int64) if the numeric value of x can be represented exactly.
Returns None if the numeric value of x is outside the range of Int64
(i.e. -9223372036854775808 to 9223372036854775807).