Bug 20371 – std.format limited to 500 characters for floats

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-11-08T14:28:02Z
Last change time
2021-04-12T07:25:30Z
Keywords
pull
Assigned to
No Owner
Creator
berni44

Comments

Comment #0 by bugzilla — 2019-11-08T14:28:02Z
The current implementation of std.format is limited to about 500 characters for floating point types. import std.format; void main() { assert(format!"%.600f"(0.1).length == 602); }
Comment #1 by dlang-bot — 2019-11-10T09:17:48Z
@berni44 updated dlang/phobos pull request #7264 "Partial replace call to snprintf for formating floatingpoint numbers." mentioning this issue: - Fix partially Issue 20371 - std.format limited to 500 characters for floats https://github.com/dlang/phobos/pull/7264
Comment #2 by dlang-bot — 2019-11-17T20:30:40Z
@berni44 created dlang/phobos pull request #7285 "Partial replace call to snprintf for '%a' and float or double." mentioning this issue: - Fix partially Issue 20371 - std.format limited to 500 characters for floats https://github.com/dlang/phobos/pull/7285
Comment #3 by dlang-bot — 2019-12-06T23:25:13Z
dlang/phobos pull request #7285 "Partial replace call to snprintf for '%a' and float or double." was merged into master: - 5516a03e6839f5b22e0facce219de8061df24e2c by Bernhard Seckinger: Fix partially Issue 20371 - std.format limited to 500 characters for floats https://github.com/dlang/phobos/pull/7285
Comment #4 by dlang-bot — 2021-01-20T17:41:54Z
@berni44 created dlang/phobos pull request #7757 "Partial replace call to snprintf for formating floatingpoint numbers for %f and %F" mentioning this issue: - Fix partially Issue 20371 - std.format limited to 500 characters for floats https://github.com/dlang/phobos/pull/7757
Comment #5 by dlang-bot — 2021-02-15T11:01:03Z
dlang/phobos pull request #7757 "Partial replace call to snprintf for formating floatingpoint numbers for %f and %F" was merged into master: - 27b6a704b07288bc98aa428389721d2c9d18c961 by Bernhard Seckinger: Fix partially Issue 20371 - std.format limited to 500 characters for floats https://github.com/dlang/phobos/pull/7757
Comment #6 by dlang-bot — 2021-04-11T10:17:44Z
@berni44 created dlang/phobos pull request #7951 "std.format: Replace snprintf for x87-reals" fixing this issue: - Fix Issue 20371 - std.format limited to 500 characters for floats https://github.com/dlang/phobos/pull/7951
Comment #7 by dlang-bot — 2021-04-12T07:25:30Z
dlang/phobos pull request #7951 "std.format: Replace snprintf for x87-reals" was merged into master: - c116ac8d9cea7fe602fcd978a3d7757038e77b7f by berni44: Fix Issue 20371 - std.format limited to 500 characters for floats https://github.com/dlang/phobos/pull/7951