Skip to content

BigInt.FromFloat

Name Mandatory Description Default Type
⬅️ Input Floating point number. Float
Output ➡️ Big integer represented as bytes. Bytes
ShiftedBy No 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)