DEV Community

Discussion on: True or False: Math.pow(2, 53) == Math.pow(2, 53) + 1 ?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Actually, Math.pow(2, 53) === Math.pow(2, 53) + 1 (triple equals), unless your wrap in BigInt.

Every programming languages have a concept of Number.MAX_SAFE_INTEGER.