[Issue 7455] Allow a cast to discard precision from a floating point during constant folding
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 12 18:31:54 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7455
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2012-02-12 18:31:52 PST ---
(In reply to comment #1)
> http://dlang.org/float.html
> "Regardless of the type of the operands, floating point constant folding is
> done in real or greater precision."
>
> I agree that an explicit cast should override this behaviour, at least to the
> point of discarding the extra precision from its operand, but it's technically
> an enhancement request.
There's no constant folding involved, but:
"For floating point operations and expression intermediate values, a greater
precision can be used than the type of the expression. Only the minimum
precision is set by the types of the operands, not the maximum."
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list