https://issues.dlang.org/show_bug.cgi?id=15885

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |[email protected]
           Assignee|[email protected]        |[email protected]

--- Comment #2 from [email protected] ---
(In reply to Rory from comment #1)
> Created attachment 1594 [details]
> possible patch
> 
> this patch just makes sure we always output using %f. I'm guessing %g
> technically has the bug because surely it shouldn't just remove part of the
> number _by default_

%f doesn't work. It breaks some unittest.

the correct format specifier would be "%.9g" (9 comes from the constant
FLT_DECIMAL_DIG).

see https://github.com/dlang/phobos/pull/4343

--

Reply via email to