bigdecimal to biginteger javascript code example
Example 1: javascript bigint
const big = 1000000n;
const bigN = BigInt(123)
const bigS = BigInt("234")
const bigHex = BigInt("0xffffffffffffffff")
const bigBin = BigInt("0b111")
Example 2: javascript bigint
const theBiggestInt = 9007199254740991n
const alsoHuge = BigInt(9007199254740991)
const hugeString = BigInt("9007199254740991")
const hugeHex = BigInt("0x1fffffffffffff")
const hugeBin = BigInt("0b11111111111111111111111111111111111111111111111111111")