Commit graph

61 commits

Author SHA1 Message Date
berni44
73b1ab5f9d std.format: Use rounding tool to round %a on floats. 2021-05-10 10:37:03 +02:00
Razvan Nitu
f33b92f74f
Merge pull request #8049 from berni44/issue_21900
Fix Issue 21900 - std.format: round to even does not work for hex integers with letters
2021-05-10 15:50:30 +08:00
berni44
3bff76a820 std.format: formatting floating points is meanwhile pure 2021-05-08 21:23:57 +02:00
berni44
430d506d35 Fix Issue 21900 - std.format: round to even does not work for hex integers with letters 2021-05-07 15:24:27 +02:00
Razvan Nitu
b78773c5a4
Merge pull request #8015 from berni44/add_integer_efga
std.format: Add formatting integers with %e, %f, %g and %a.
2021-05-07 14:59:25 +08:00
berni44
03447d6cc7 Fix Issue 21808 - std.format: It should be possible to change the order of key and value of AAs. 2021-05-05 09:12:40 +02:00
berni44
6d5d3e6f0e std.format: handle "exotic" reals by casting to double 2021-05-03 12:29:15 +02:00
berni44
dbfb742ccd Fix Issue 21875 - std.format: wrong number of format specifiers in
nested format string of associative arrays should be detected
2021-04-29 15:26:05 +02:00
berni44
3206e52aae Clean up after making formating floating point numbers @nogc. 2021-04-27 13:18:11 +02:00
berni44
99cbab9584 Fix Issue 21858 - std.format: centering output 2021-04-26 19:20:41 +02:00
berni44
5fbc1da0fa Fix Issue 21847 - std.format: %e, %g and %a should be supported for integers too 2021-04-26 17:10:05 +02:00
berni44
ad5247072f std.format: Add formatting integers with %e, %f, %g and %a. 2021-04-26 16:28:00 +02:00
berni44
edb1237abc Add rounding tool. 2021-04-26 16:28:00 +02:00
The Dlang Bot
fe172268e8
Merge pull request #8007 from berni44/float_f_nogc
std.format: Make formatting %f (and %g partly) 100% @nogc.
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2021-04-24 12:55:55 +02:00
The Dlang Bot
6b14e37a4c
Merge pull request #8006 from berni44/float_e_nogc
std.format: Make formatting %e (and partly %g) 100% @nogc.
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2021-04-24 12:12:43 +02:00
berni44
469a427d4d Fix Issue 21842 - std.format: "%-+05,g" adds extra comma 2021-04-24 10:58:21 +02:00
berni44
ac00658c00 Fix Issue 21841 - std.format: grouping produces strange result with zero precision and %e 2021-04-24 10:47:03 +02:00
berni44
ce00bcec6c Fix Issue 21840 - std.format: grouping ignores space flag with %e 2021-04-24 10:33:30 +02:00
berni44
088b589352 Fix Issue 21838 - std.format: Grouping garbles up %a output 2021-04-24 10:21:14 +02:00
berni44
0cbeff86e9 Fix Issue 21836 - std.format: grouping may cause RangeError 2021-04-24 16:15:10 +08:00
berni44
cd6b8d9e91 std.format: Make formatting 0.0 100% @nogc. 2021-04-24 16:15:10 +08:00
berni44
110cb1a8be Fix Issue 21853 - std.format: formatting real.max in CTFE fails 2021-04-24 02:52:53 +02:00
Razvan Nitu
0881660baf
Merge pull request #7971 from berni44/float_naninf_nogc
std.format: Make formatting nan and inf 100% @nogc.
2021-04-23 15:28:20 +08:00
berni44
297ce7e865 std.format: Refactor formatTest 2021-04-22 02:37:46 +02:00
berni44
c78646ba93 Make std.format.internal.write: formatTest private. 2021-04-21 17:37:23 +02:00
berni44
ca06454cfb Move unittests from std/format/package.d at correct place. 2021-04-21 15:24:44 +02:00
berni44
b2019ebab0 Narrow imports of std.math in the rest of phobos. 2021-04-21 03:00:57 +02:00
berni44
1d713e6f73 Move unittests from std.format.internal.write at correct place. 2021-04-20 11:27:33 +02:00
berni44
91a4ec0889 std.format: Fix a small bug. 2021-04-19 10:07:14 +02:00
berni44
fc8849a8a1 Fix second part of Issue 21722 - toString(sink, string format) does not work with non-"%s" strings 2021-04-19 08:53:13 +02:00
berni44
c185252980 std.format: Make formatting nan and inf 100% @nogc. 2021-04-18 20:51:35 +02:00
berni44
72cfed4bba Fix Issue 21820 - std.format: formatting zero should never lead to empty string 2021-04-14 17:25:59 +02:00
berni44
9e7ada3789 Fix Issue 21817 - std.format: %u on integer does not print unsigned value 2021-04-14 17:25:59 +02:00
berni44
77eafb11ac Fix Issue 21814 - std.format: grouping with width 0 causes floating point exception 2021-04-14 17:25:59 +02:00
berni44
5e180880cb Fix Issue 21777 - std.format: several issues when formatting integers with precision 2021-04-14 17:25:59 +02:00
berni44
21918e2374 std.format: New version for formatting integral values using writeAligned 2021-04-14 17:25:59 +02:00
berni44
594eebf3bd std.format: Add precision for integers to writeAligned. 2021-04-13 11:54:49 +02:00
berni44
c9121a8c89 Fix Issue 20536 - std.format: %a on reals is inconsistent with %a on float/double 2021-04-12 08:23:51 +02:00
berni44
c116ac8d9c Fix Issue 20371 - std.format limited to 500 characters for floats 2021-04-12 08:23:38 +02:00
berni44
23e5c9e150 Fix Issue 20320 - format("%f") leeds to wrong output 2021-04-12 08:23:28 +02:00
berni44
6fb98242e0 Fix Issue 9297 - Formatting of floating point values in std.format truncates reals to double 2021-04-12 08:23:17 +02:00
berni44
c75bd8756d Fix Issue 8424 - Compile time conversions of double/floats to strings 2021-04-12 08:23:13 +02:00
berni44
36152d4e2e std.format: Replace snprintf for x87-reals 2021-04-12 08:22:29 +02:00
berni44
d9ba005ff5 Extend writeAligned to care about grouping. 2021-04-10 17:16:35 +08:00
berni44
9301312981 Fix Issue 20534 - std.format: %r on boolean gives wrong result 2021-04-08 15:36:07 +02:00
berni44
96ee071156 Fix Issue 17381 - Checked format string is permissive after floating point argument 2021-03-31 12:28:22 +02:00
Razvan Nitu
106b1f423c
Merge pull request #7920 from berni44/deprecate_enforceValidFormatSpec
Deprecate public access of enforceValidFormatSpec
2021-03-31 16:53:32 +08:00
berni44
b623c12390 Deprecate public access of enforceValidFormatSpec 2021-03-25 17:50:36 +01:00
berni44
e786cff353 Fix Issue 15888 - std.format should not produce deprecated hexstrings 2021-03-25 16:10:02 +01:00
berni44
6237aa02a9 Deprecate public access of formatElement 2021-03-25 10:17:21 +01:00