D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20371 - std.format limited to 500 characters for floats
Summary: std.format limited to 500 characters for floats
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: 2019-11-08 14:28 UTC by berni44
Modified: 2021-04-12 07:25 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 2019-11-08 14:28:02 UTC
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 Dlang Bot 2019-11-10 09:17:48 UTC
@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 Dlang Bot 2019-11-17 20:30:40 UTC
@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 Dlang Bot 2019-12-06 23:25:13 UTC
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 Dlang Bot 2021-01-20 17:41:54 UTC
@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 Dlang Bot 2021-02-15 11:01:03 UTC
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 Dlang Bot 2021-04-11 10:17:44 UTC
@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 Dlang Bot 2021-04-12 07:25:30 UTC
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