Using trunc function in Erlang

Matthias Lang matthias@REDACTED
Fri Dec 30 22:15:03 CET 2005


Erlang Questions writes:
 > I was afraid about that.
 > Unfortunately, these numbers represent money in my application :o(

You could always buy an IBM mainframe with hardware support for
decimal fractions ;-)

Here's a good starting point to learn more:

  http://www2.hursley.ibm.com/decimal/

in particular, there's a FAQ which describes the general case of the
particular problem you encountered:

  http://www2.hursley.ibm.com/decimal/decifaq1.html

Matthias



More information about the erlang-questions mailing list