[Issue 20288] New: std.format double with NaN fails with range violation on comma
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 10 14:09:06 UTC 2019
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 at puremagic.com
Reporter: rschadek at 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
--
More information about the Digitalmars-d-bugs
mailing list