API Reference › BigInt › BigInt.from
method

BigInt.from

BigInt.from(value) -> BigInt

Lifts a plain int into a BigInt, the starting point for exact arbitrary-precision arithmetic that would overflow an ordinary integer.

Example

program Demo {
  handler Step phase Update {
    let n = BigInt.from(1000000)
  }
}
← All symbols