Always false float comparisons

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon May 9 04:25:05 PDT 2016


On 5/9/2016 2:25 AM, qznc wrote:
> What is the actual reason for the mismatch?

floats cannot represent 1.30 exactly, and promoting it to a double gives a 
different result than 1.30 as a double.



More information about the Digitalmars-d mailing list