D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21900 - std.format: round to even does not work for hex integers with letters
Summary: std.format: round to even does not work for hex integers with letters
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2021-05-07 13:12 UTC by Berni44
Modified: 2021-05-10 07:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Berni44 2021-05-07 13:12:16 UTC
assert(format!"%.1a"(472) == "0x1.ep+08");
Comment 1 Dlang Bot 2021-05-07 13:26:41 UTC
@berni44 created dlang/phobos pull request #8049 "Fix Issue 21900 - std.format: round to even does not work for hex integers with letters" fixing this issue:

- Fix Issue 21900 - std.format: round to even does not work for hex integers with letters

https://github.com/dlang/phobos/pull/8049
Comment 2 Dlang Bot 2021-05-10 07:50:36 UTC
dlang/phobos pull request #8049 "Fix Issue 21900 - std.format: round to even does not work for hex integers with letters" was merged into master:

- 430d506d35a4e3cb8ec47259b4a0a3d296130446 by berni44:
  Fix Issue 21900 - std.format: round to even does not work for hex integers with letters

https://github.com/dlang/phobos/pull/8049