How to get min and max safe numeric value in TypeScript

1 Answer

0 votes
// Guaranteed to be represented exactly and correctly

console.log(Number.MAX_SAFE_INTEGER);
 
console.log(Number.MIN_SAFE_INTEGER);
 

     
     
/*
run:
     
9007199254740991 
-9007199254740991 
     
*/

 



answered Sep 20, 2022 by avibootz

Related questions

1 answer 169 views
1 answer 181 views
1 answer 156 views
1 answer 151 views
1 answer 156 views
1 answer 180 views
...