Always false float comparisons

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon May 16 00:31:47 PDT 2016


On 5/15/2016 11:48 PM, Iain Buclaw via Digitalmars-d wrote:
> I can't think of a case of the top of my head where too much precision
> caused a surprise.  It's always when there is too little:
>
> https://issues.dlang.org/show_bug.cgi?id=16026
>
> And I think the it's about that time of the year when I remind people
> of gcc bug 323, and this lovely blog post.
>
> http://blog.jwhitham.org/2015/04/gcc-bug-323-journey-to-heart-of.html

Manu, read those!

More:

https://randomascii.wordpress.com/2012/03/21/intermediate-floating-point-precision/

Ironically, this Microsoft article argues for greater precision for intermediate 
calculations, although Microsoft ditched 80 bits:

https://msdn.microsoft.com/en-us/library/aa289157(VS.71).aspx


More information about the Digitalmars-d mailing list