std.math performance (SSE vs. real)

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 30 12:15:44 PDT 2014


On 6/30/2014 11:10 AM, Sean Kelly wrote:
> If your liquid assets are represented in dollars, yes.  But this
> is really just a display issue.  The amounts could easily be
> stored in a floating point representation and rounded when
> reporting is done.

But if you round only for display purposes (and for sending statements to a 
customer), the customer can easily wind up with accounts that don't balance to 
the penny.


More information about the Digitalmars-d mailing list