April 01, 2016 [Issue 15861] New: Wrong double-to-string conversion with -O | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15861 Issue ID: 15861 Summary: Wrong double-to-string conversion with -O Product: D Version: D2 Hardware: x86 OS: All Status: NEW Keywords: wrong-code Severity: regression Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: thecybershadow@gmail.com ///////////////////////// test.d ///////////////////////// import std.format; void main() { assert(format("%.18g", 4286853117.0) == "4286853117"); } ////////////////////////////////////////////////////////// Passes without -O, asserts with -O. Introduced in https://github.com/D-Programming-Language/dmd/pull/4911 -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply