www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20357] New: format should obey space flag when printing nan

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

          Issue ID: 20357
           Summary: format should obey space flag when printing nan or inf
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: bugzilla d-ecke.de

format("^%- 13,3.2f$", double.nan);

should be

^ nan         $

is

^nan          $

Same for inf.

--
Nov 05 2019