On Sat, Jun 28, 2014 at 05:16:53PM -0700, Walter Bright via Digitalmars-d wrote:
> On 6/28/2014 3:57 AM, Russel Winder via Digitalmars-d wrote:
[...]
> >Or indeed when calculating anything to do with money.
> 
> You're better off using 64 bit longs counting cents to represent money
> than using floating point. But yeah, counting money has its own
> special problems.

For counting money, I heard that the recommendation is to use
fixed-point arithmetic (i.e. integer values in cents).


T

-- 
The best compiler is between your ears. -- Michael Abrash

Reply via email to