bigint
value.
bigint
values can be numbers too large to be stored as number
values.
A bigint
literal in code is an integer number with an appended n
.
Example:
var hugeNumber = 1245678901234567890n;
var hugeNumberObject = BigInt( hugeNumber );
Beside decimal numbers also binary, octal and hexadecimal numbers are supported: var decimal = BigInt( "12" );
var binary = BigInt( "0b1100" );
var octal = BigInt( "0o14" );
var hex = BigInt( "0xC" );
value
modulo 2bits
, as a signed integer.
value
modulo 2bits
, as an unsigned integer.