https://issues.dlang.org/show_bug.cgi?id=16202
Issue ID: 16202
Summary: Floating point types implicitly convert losing
precision
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
Floating point types implicitly convert to less precise types with no warning
or error.
real x = real.max;
float y = x;
Something like that should at least be a warning, right now it compiles with no
problem...
If I am using reals, I obviously needed the precision, I don't want to
accidentally lose that precision somewhere. This could be dangerous in critical
applications that rely on a certain level of precision.
--