BigInt.from constructor

BigInt.from(
  1. num value
)

Creates a big integer from the provided value number.

Examples:

var bigInteger = BigInt.from(1); // 1
bigInteger = BigInt.from(0.9999); // 0
bigInteger = BigInt.from(-10.99); // -10

Implementation

external factory BigInt.from(num value);