Thread overview
[Issue 22740] const float values should be rounded to float
Feb 05, 2022
Iain Buclaw
Feb 05, 2022
Iain Buclaw
[Issue 22740] float and double literals should be rounded to their precision
Feb 06, 2022
Walter Bright
Feb 06, 2022
Dlang Bot
Dec 17, 2022
Iain Buclaw
February 05, 2022
https://issues.dlang.org/show_bug.cgi?id=22740

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=9937

--
February 05, 2022
https://issues.dlang.org/show_bug.cgi?id=22740

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
The introduction of `core.math.toPrec' was made to specifically handle this case, as compile-time floats are stored at full precision.

--
February 06, 2022
https://issues.dlang.org/show_bug.cgi?id=22740

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|const float values should   |float and double literals
                   |be rounded to float         |should be rounded to their
                   |                            |precision

--
February 06, 2022
https://issues.dlang.org/show_bug.cgi?id=22740

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #13613 "fix Issue 22740 - float and double literals should be rounded to thei…" fixing this issue:

- fix Issue 22740 - float and double literals should be rounded to their precision

https://github.com/dlang/dmd/pull/13613

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22740

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 13
https://issues.dlang.org/show_bug.cgi?id=22740

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/20048

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--