Frontend - Tumblr Posts

11 months ago

edit: the correct answer is...

-0

this happens due to the way floating point numbers are stored; 0 and -0, although they are equivalent in value, the bits stored in your computer are not identical. the bit that tells a number that it is negative would be the only difference.

yeah, this is stupid, but so is javascript


Tags :