On Sunday, 29 June 2014 at 04:46:49 UTC, deadalnix wrote:
On Sunday, 29 June 2014 at 04:38:31 UTC, H. S. Teoh via
Digitalmars-d wrote:
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
MtGox was using float.
LOL ;-)
---
Paolo