AW: fractional cents

"Pense, Joachim" <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <630BE70C8320D6118D240002A589ABB20DD40A3F@derum201.exde01.exch.eds.com>
A. Pagaltzis [mailto:[email protected]] wrote:

> When you're dealing with money, it's better to use cents (or
> tenths or hundredths of cents) as a unit, rather than dollars.
> You can then use integer math. This gets you around all the
> problems with a base-2 representation of base-10 fractions,
> something you don't want to have to deal with when money is on
> the line..

But then you still have the issue of marking the difference between 257
cents and 257.0 cents.

Joachim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.