Brendan Eich (Creator of JS) discussed this here: http://www.aminutewithbrendan.com/pages/20101025 as it pertains to JS, but it is similar for other languages that implement IEEE double precision numbers
I think ECMA script uses double-precision 64-bit binary format IEEE 754 values for all number storage, or are there browser differences I don't know about which cause problems?