Real implicitly converts to float?

Tofu Ninja via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 21 22:04:42 PDT 2016


Is this intended behavior? I can't seem to find it documented 
anywhere, I would think the loss in precision would atleast be a 
warning.

real x = 10;
float y = x; // No error or warning

real to double and double to float also work.


More information about the Digitalmars-d-learn mailing list