digitalmars.D.bugs - [Issue 16078] New: %e (scientific notation) should be supported for
- via Digitalmars-d-bugs (26/26) May 26 2016 https://issues.dlang.org/show_bug.cgi?id=16078
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 puremagic.com Reporter: greensunny12 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. --
May 26 2016