Digg people... do any of you have any idea how computers work?Calculators like Google Calc use floating point arithmetic to handle these calculations. In the case of Google Calc they're using double precision floating point arithmetic, which is why <a class="user" href="http://www.google.com/search?q=1.7976931348623157+*+10%5E308">http://www.google.com/search?q=1.7976931348623157+ ...</a> works but not <a class="user" href="http://www.google.com/search?q=1.79769313486232+*+10%5E308">http://www.google.com/search?q=1.79769313486232+*+ ...</a>The reason why Google Calc cannot tell the difference between 333333333333335 and 333333333333334 is because at that point they have the same binary representation, because there's only that many significant digits the mantissa can represent. What's more puzzling however is that instead of having a standard mantissa of 52 bits as defined by the IEEE 754 standard it has 4 bits less, or 48 bits, whereas the exponent seems to have as many bits as the standard.So the real question is, 60-bit floating point representation WTF?EDIT : seems like Linux sometimes uses 60-bit "single precision" floats rather than 32-bit floats...
digitalcreatorsAug 24, 2008
small bug...FIX!
enjoymoreradioSep 2, 2008
(X+1)-X returns 0 when X>333 333 333 333 333
thok13Sep 15, 2008
399 999 999 999 999 - 399 999 999 999 997 = 2 that works for me
dracusisSep 26, 2008
I got it, but it wasn't even a little bit funny.
thearssguyOct 24, 2008
Digg people... do any of you have any idea how computers work?Calculators like Google Calc use floating point arithmetic to handle these calculations. In the case of Google Calc they're using double precision floating point arithmetic, which is why <a class="user" href="http://www.google.com/search?q=1.7976931348623157+*+10%5E308">http://www.google.com/search?q=1.7976931348623157+ ...</a> works but not <a class="user" href="http://www.google.com/search?q=1.79769313486232+*+10%5E308">http://www.google.com/search?q=1.79769313486232+*+ ...</a>The reason why Google Calc cannot tell the difference between 333333333333335 and 333333333333334 is because at that point they have the same binary representation, because there's only that many significant digits the mantissa can represent. What's more puzzling however is that instead of having a standard mantissa of 52 bits as defined by the IEEE 754 standard it has 4 bits less, or 48 bits, whereas the exponent seems to have as many bits as the standard.So the real question is, 60-bit floating point representation WTF?EDIT : seems like Linux sometimes uses 60-bit "single precision" floats rather than 32-bit floats...
ipekpromosyonJan 13, 2009
having a difference .. ipekpromosyon
deaperMay 15, 2009
399 999 999 999 990 - 39 999 999 999 989 = 3.6 × 10^14 WTF?
lovespot2Jun 12, 2009
is the last guy for real how old are you like 6 basic maths v v v basic maths
thejeremyJun 30, 2009
<a class="user" href="http://www.google-vs-bing.com/?q=399999999999999-399999999999998">http://www.google-vs-bing.com/?q=399999999999999-3 ...</a>!
87linuxOct 12, 2009
Google is ALWAYS right. They are the future of all information, aren't they?
quaidheizerOct 12, 2009
1984 anyone?
sessizyusufDec 9, 2010
Thanks google : )