Bug 21847 – std.format: %e, %g and %a should be supported for integers too

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-04-21T17:41:56Z
Last change time
2021-05-07T06:59:31Z
Keywords
pull
Assigned to
No Owner
Creator
Berni44

Comments

Comment #0 by bugzilla — 2021-04-21T17:41:56Z
This is inspired by issue 16078. I see no reason, why integers shouldn't be formatted with these three specifiers. I would probably also add %f for completeness reasons, although it's probably less useful.
Comment #1 by dlang-bot — 2021-04-26T15:31:32Z
@berni44 created dlang/phobos pull request #8015 "std.format: Add formatting integers with %e, %f, %g and %a." fixing this issue: - Fix Issue 21847 - std.format: %e, %g and %a should be supported for integers too https://github.com/dlang/phobos/pull/8015
Comment #2 by dlang-bot — 2021-05-07T06:59:31Z
dlang/phobos pull request #8015 "std.format: Add formatting integers with %e, %f, %g and %a." was merged into master: - 5fbc1da0fa105e843c25c28e37c6dfa32250f97e by berni44: Fix Issue 21847 - std.format: %e, %g and %a should be supported for integers too https://github.com/dlang/phobos/pull/8015