API Reference › BigInt › BigInt.pow
method

BigInt.pow

BigInt.pow(a, exp) -> BigInt

Raises a to the (non-negative) integer power exp by binary exponentiation — an exact way to reach astronomically large magnitudes.

Example

program Demo {
  handler Step phase Update {
    let googol = BigInt.pow(BigInt.from(10), 100)
  }
}
← All symbols