javascript - Unexpected results in Firebug -
unexpected results in firebug console. why in operation: 1.7e16+2 last number 2 , in 1.7e16+3 operation last number 4 :d javascript bug?
this not unexpected. standard floating point behavior.
you should read 'what every computer scientist should know floating-point arithmetic'.
if material complicated, , is, http://floating-point-gui.de concise alternative.
Comments
Post a Comment