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?

firebug unexpected results

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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -