How to get the minimum safe integer in JavaScript

1 Answer

0 votes
// Safe = the ability to represent integers exactly and to compare them correctly

console.log(Number.MIN_SAFE_INTEGER);
 
 
 
/*
run:
 
-9007199254740991
 
*/

 



answered May 4, 2024 by avibootz
...