In Javascript, numbers are 64 bit floating point values. The largest integer (magnitude) is 253, or Math.pow(2,53), or 9007199254740992.
However, the bitwise operators and shift operators supports only up to 32 bit signed integer, 231-1, or Math.pow(2,31)-1, or 2147483647.
Note: the maximum 32 bit unsigned integer, 232-1, or Math.pow(2,32)-1, or 4294967295, can be used in arithmetic calculations but not bitwise operations.
No comments:
Post a Comment