std.math performance (SSE vs. real)

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 28 21:46:47 PDT 2014


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.


More information about the Digitalmars-d mailing list