Always false float comparisons

Binarydepth via Digitalmars-d digitalmars-d at puremagic.com
Sat May 14 14:13:30 PDT 2016


On Monday, 9 May 2016 at 11:26:55 UTC, Walter Bright wrote:
>> I wonder what's the difference between 1.30f and 
>> cast(float)1.30.
>
> There isn't one.

I always saw type casting happening @ run-time and "literals" 
(pardon if that's not the correct term) to happen during 
compilation. I know that there's no difference in this topic 
since it is a comparison of values.


More information about the Digitalmars-d mailing list