Always false float comparisons

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed May 18 16:28:13 PDT 2016


On 5/18/2016 4:17 PM, Joseph Rushton Wakeling wrote:
> On Wednesday, 18 May 2016 at 23:09:28 UTC, Walter Bright wrote:
>> Now try the square root of 2. Or pi, e, etc. The irrational numbers are, by
>> definition, not representable as a ratio.
>
> Continued fraction? :-)

Somehow I don't think gcc is using Mathematica for constant folding.


More information about the Digitalmars-d mailing list