Always false float comparisons

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Fri May 13 01:07:40 PDT 2016


On Friday, 13 May 2016 at 05:12:14 UTC, Manu wrote:
> No. Do not.
> I've worked on systems where the compiler and the runtime don't 
> share
> floating point precisions before, and it was a nightmare.

Use reproducible cross platform IEEE754-2008 and use exact 
rational numbers. All other representations are just painful. 
Nothing wrong with supporting 16, 32, 64 and 128 bit, but stick 
to the reproducible standard. If people want "non-reproducible 
fast math", then they should specify it.



More information about the Digitalmars-d mailing list