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 158 views
1 answer 175 views
1 answer 144 views
1 answer 146 views
1 answer 148 views
1 answer 166 views
...