[Shootout-list] floating point rounding

Bengt Kleberg bengt.kleberg@ericsson.com
Thu, 31 Mar 2005 11:13:45 +0200


James McIlree wrote:
> 
>     I ran some quick tests with what I had available, I admit
> its not great coverage :-).
> 
>     It looks like C, Ruby, and Python round up at .5, Java and
> Lisp round up at .6. It would be interesting to see what some of

Erlang:

  0.001000 0.00
  0.002000 0.00
  0.003000 0.00
  0.004000 0.00
  0.005000 0.01
  0.006000 0.01
  0.007000 0.01
  0.008000 0.01
  0.009000 0.01


bengt