Always false float comparisons

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu May 19 23:25:48 PDT 2016


On 5/19/2016 12:49 AM, Max Samukha wrote:
> People are trying to get across that, if they wanted to maximize accuracy, they
> would request the most precise type explicitly. D has 'real' for that. This
> thread has shown unequivocally that the semantics you are insisting on is bound
> to cause endless confusion and complaints.

C++ programs do the same thing, and have for decades, and such behavior is 
allowed by the C++ Standard.

People have been confused by and complained about floating point behavior at 
least since I started programming 40 years ago.

I have not invented anything new here.




More information about the Digitalmars-d mailing list