API Reference › BigInt › BigInt.parse
method

BigInt.parse

BigInt.parse(text) -> BigInt

Parses decimal text (an optional leading sign then digits) into a BigInt — the way to enter a value too large for an int literal.

Example

program Demo {
  handler Step phase Update {
    let huge = BigInt.parse("123456789012345678901234567890")
  }
}
← All symbols