Always false float comparisons

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Wed May 18 03:46:18 PDT 2016


On Wednesday, 18 May 2016 at 09:13:35 UTC, Iain Buclaw wrote:
> Can you back that up statistically?  Try running this same 
> operation 600 million times plot a graph for the result from 
> each run for it so we can get an idea of just how random or 
> arbitrary it really is.

Huh? This isn't about statistics. It is about math. The magnitude 
of the difference depends on what you do with the constant. It 
can be exponentially boosted.





More information about the Digitalmars-d mailing list