[Issue 16078] New: %e (scientific notation) should be supported for all integer-like types
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu May 26 05:08:11 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16078
Issue ID: 16078
Summary: %e (scientific notation) should be supported for all
integer-like types
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: greensunny12 at gmail.com
I expected the following to work:
```
import std.bigint;
import std.stdio;
void main()
{
writefln("%e", BigInt(100_000));
}
```
It turns out that "%e" is only supported for floating point types and even
doesn't work for built-in int/long.
--
More information about the Digitalmars-d-bugs
mailing list