In JavaScript
, Number.MAX_VALUE represents the maximum representable numeric value (which is approximately 1.79E+308
, a pretty big number)
However, if I evaluate (Number.MAX_VALUE - 1) < Number.MAX_VALUE
in javascript console, it returns me false
.
If i use multiplication, it works thought :
(Number.MAX_VALUE * 0.99999) < Number.MAX_VALUE
returns true
Maybe I am missing something, but what is the possible explanation for this ?