Re: Always false float comparisons
Matthias Bentrup via Digitalmars-d Tue, 17 May 2016 07:13:31 -0700
If you try to make compile-time FP math behave exactly like
run-time FP math, you'd not only have to use the same precision
in the compiler, but also the same rounding mode, denormal
handling etc., which can be changed at run time
(http://dlang.org/phobos/core_stdc_fenv.html), so the exact same
piece of code can yield different results based on the run-time
FP-context.
- Re: Always false float comparisons Andrei Alexandrescu via Digitalmars-d
- Re: Always false float comparisons Timon Gehr via Digitalmars-d
- Re: Always false float comparisons Ethan Watson via Digitalmars-d
- Re: Always false float comparisons jmh530 via Digitalmars-d
- Re: Always false float comparisons H. S. Teoh via Digitalmars-d
- Re: Always false float comparisons Daniel Murphy via Digitalmars-d
- Re: Always false float comparisons Timon Gehr via Digitalmars-d
- Re: Always false float comparisons Iain Buclaw via Digitalmars-d
- Re: Always false float comparisons Walter Bright via Digitalmars-d
- Re: Always false float comparisons Ola Fosheim Grøstad via Digitalmars-d
- Re: Always false float comparisons Matthias Bentrup via Digitalmars-d
- Re: Always false float comparisons Ola Fosheim Grøstad via Digitalmars-d
- Re: Always false float comparisons Walter Bright via Digitalmars-d
- Re: Always false float comparisons Walter Bright via Digitalmars-d
- Re: Always false float comparisons Guillaume Piolat via Digitalmars-d
- Re: Always false float comparisons Walter Bright via Digitalmars-d
- Re: Always false float comparisons Wyatt via Digitalmars-d
- Re: Always false float comparisons Walter Bright via Digitalmars-d
- Re: Always false float comparisons Manu via Digitalmars-d
- Re: Always false float comparisons Max Samukha via Digitalmars-d
- Re: Always false float comparisons Ethan Watson via Digitalmars-d