Thoughts on IEEE P754

Waldemar Horwat waldemar at
Fri Aug 22 11:28:33 PDT 2008

Sam Ruby wrote:
> Waldemar Horwat wrote:
>> Some tidbits about our embedding of decimal:
>> - Contagion should be towards decimal if decimal and binary are mixed
>> as operands.  5.3m + 1 should be 6.3m, not 6.3.  If we use 128-bit
>> decimal, this also makes the behavior of heterogeneous comparisons
>> (binary compared to decimal) sensible.
> What should 5.3m + 1.0000000000000001 produce?
> I also don't understand the heterogeneous comparisons comment.  What 
> should 1.0000000000000001 == 1.0000000000000001m produce?

Depends.  There are many decimal formats.  Which decimal format and representation are you specifying?


More information about the Es-discuss mailing list