Skip to content

BigInt.FromFloat

Name - Description Default Type
<input> Floating point number. Float
<output> Big integer represented as bytes. Bytes
ShiftedBy The shift is of the decimal point, i.e. of powers of ten, and is to the left if n is negative or to the right if n is positive. 0 Int

Converts a floating point number to a big integer.

Examples

1
2
3
4
42 (BigInt) = .expected

42.1 (BigInt.FromFloat)
(BigInt.Is .expected) (Assert.Is true true)