17 Dec
2003
17 Dec
'03
11:17 p.m.
bryce@digicash.com writes:
It is true enough that *rates* can be stored as floats if you want, but never actual sums.
That's interesting. Because rates never approach 2^23, and because you never need that much precision with rates? It seems like a bad idea to me anyway. Why not just use an Int32 if you don't need that much precision?
I only report the news. I have occassionally seen floats in rates, I have never seen them used in accounting. I will also note that rates do indeed get astonishingly precise -- five significant figures. In any case, however, I have never seen accounts done as floats -- never. .pm