[Shootout-list] floating point rounding

Daniel South WildCard_25@HotMail.Com
Fri, 1 Apr 2005 00:42:58 +1000


James McIlree wrote:
| Indeed, Java changes, but three variants of Lisp I tried did not.
|
| This seems amazingly byzantine, I'm surprised numerically inclined
| types tolerate it!
|
Haven't used Lisp for more years than I want to remember :-)
Looks like it uses round down.

Isaac, as a way to resolve this, you could extend the benchmark 
precision out to 3 decimal places. None of the tests have a 5 in the 4th 
decimal place followed by all 0s. This will give a uniform result no 
matter which of the three rounding methods the language uses (all three 
methods are valid).

Daniel South