On Fri, 04 Jun 2004 23:46:06 -0400, you wrote:

>Welcome to the wonderful world of floating point numbers :-)
>
>I always store money values as cents (or as integers, what ever your 
>currency might call it) and move the decimal to format for display..

Yes, I took a closer look at floating point addition using my
compiler.  This does indeed work.  I was worried that once the number
got put into a floating point notation, the error would still creep
up, but I didn't get that, even when adding millions of numbers.

Still, this is a little awkward (but workable)..  I may have to make a
special "MONEY" type for users, and every time convert it to cents..
Hmm..

Thanks

Randall Fox

 

 








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to