digitalmars.D.bugs - [Issue 20288] New: std.format double with NaN fails with range
- d-bugmail puremagic.com (23/23) Oct 10 2019 https://issues.dlang.org/show_bug.cgi?id=20288
https://issues.dlang.org/show_bug.cgi?id=20288 Issue ID: 20288 Summary: std.format double with NaN fails with range violation on comma Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: rschadek symmetryinvestments.com ``` void main(){ import std.format; format("%,.2f", double.nan); } ``` core.exception.RangeError /dlang/dmd/linux/bin64/../../src/phobos/std/format.d(2659): Range violation --
Oct 10 2019