Search the docs

Find a guide, global, type or member

BigLike

Anything a bignum argument accepts. A number must be whole and finite, except as the factor of mul, the divisor of div and either side of a comparison, which take fractions. Text is read like bignum.parse: "1.5M", "2e24", "1,000"; unreadable text raises.

type BigLike = Bignum | number | string -- strings accept "1.5M", "2e24", "1,000"