[Pharo-project] Unexpected behavior of roundTo:

Marcus Denker marcus.denker at inria.fr
Fri Apr 8 21:53:09 CEST 2011

On Apr 8, 2011, at 7:48 PM, Hilaire Fernandes wrote:

> Well, whatever the underneath representation, one can expect roundedTo:
> 2 to return a float with two decimals.
Sometimes I think we should use the resources that these amazing machines
give us these days to move programming languages closer to humans...

There are better Float models than the ones that are implemented in hardware.
E.g. another INRIA Project is this GNU MPFR:

"The MPFR library is a C library for multiple-precision floating-point computations with correct rounding."


Why don't we make our language better at "real" math? The power in the machine is definitly there...
I am quite convincd that if there are normal programming languages in 50 years, the math part of them
will be closer to Mathematica then to C...


Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.

More information about the Pharo-project mailing list