[plt-scheme] Numerical precision

From: Henk Boom (henk at henk.ca)
Date: Wed Mar 11 23:10:55 EDT 2009

2009/3/11 Richard Cleis <rcleis at mac.com>:
> You want to do rounding or truncation according to the requirements of the
> simulation.  He says that he is doing personal financial simulations, which
> implies to me that after each operation the simulation keeps only a certain
> precision (like a person would enter only n digits beyond the decimal in a
> spreadsheet, or write them from a calculator display.)
> Perhaps not :)

As far I have seen you usually try to at least get to the end of the
expression before rounding =p. Obviously when you get to a final
amount (or an amount which has to paid out or whatever) you round.


Posted on the users mailing list.