Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

MAX_SAFE_INTEGER

// Within this limit we can do our calculations safely with precision
// After MAX_SAFE_INTEGER limit, use BigInt value type.

console.log(Number.MAX_SAFE_INTEGER);     // (2^53 - 1) => 9007199254740991
console.log(Number.MIN_SAFE_INTEGER);     // (-(2^53 - 1)) => -9007199254740991
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
9+9 =