created by Brian LeRoux & Andrew Lunny. sparodically uncurated by David Trejo.

2010 02 16 more floating point rounding

In my quest to find whether Infinity was a finite number, I found this. Two numbers that are different are the exact same. - @rem

    // note the number to the left of the 'e', 7 and 8 respectively
    alert( 1.7976931348623157e+308 === 1.7976931348623158e+308 ); // true!
Fork me on GitHub