5 ms·
Trying with a value of 1e20 , 1e21 gives interesting results. More curious is that using konqueror I get one value but with firefox i get another. Seems to be
by slug 16y ago
Trying with a value of 1e20 , 1e21 gives interesting results.
More curious is that using konqueror I get one value but with firefox i get another. Seems to be some bit flipping somewhere, since with firefox I get
Miscellaneous mandatory programs $16068258000000004096.00
4096, 16384 , etc
but with konqueror i get:
Miscellaneous mandatory programs $16068258000000005000.00
Maybe some bug with the javascript interpreter ?
- riffer 16y agoWhy do people always try to break things? This is a serious question pertaining to human nature, not a complaint. I've noticed that anytime I demo something I've built, if the person/people I'm showing have control of the demo they go try to test the outer boundaries of whatever I've built. What makes us want to do that?
- crystalis 16y agoYou get the one-two of potential insight into the particular workings and potential 'unintended cool thing'.
- DevX101 16y agoErrors at the edge cases are usually the hardest to detect.
- anigbrowl 16y agoBecause of what it tells us about the design and utility. This particular tool looks like it will keep working through inevitable period of hyperinflation everyone keeps warning me about, all the way up to the when we cross the National Debt Event Horizon, at which point accounting is suddenly agreed to be an entirely new art form, and computing a restaurant tip requires a PhD in materials science.
- awakeasleep 16y agoIt isn't just human nature. If you have a dog or a cat or have watched videos of animals on Youtube you'd see it has to do with most animals on planet earth. I have a theory: Things have evolved to try and do everything they can do, because nothing is smart enough to act on foresight alone.
- MichaelApproved 16y agoTesting with crazy figures and data makes sense because it can magnify a bug you wouldn't have noticed with normal use. For example you may catch a math error that's only obvious with big numbers.
- theli0nheart 16y agoAh, bizarre. I'll look into it...
- pkghost 16y agomoral of the (as yet untold) story: rocket science and javascript don't mix. browser differences aside, javascript represents all numbers as floats, so as you attempt to store larger and larger numbers, you will find yourself with less and less accurate data. i'd bet that some minor difference in order of operations between the JS implementations of FF and konqueror result in the differences you're observing.