This math scares me
Werner Schiendl
ws-news at gmx.at
Wed Mar 14 17:46:02 EST 2001
> In fiancial calculations you also need to represent numbers
> that aren't amounts of money. Interest rates for example.
>
How about 1/100 of a percent?
So you can stay with integer arithmetics, especially if you consider pythons
'unlimited' long
If 0.01 % does not suffice in precision, you can store it as 0.0001 % units
(say, store 1.0625% as 10625, no comma whatsoever)
regards
werner
More information about the Python-list
mailing list