Commit Graph

84 Commits

Author SHA1 Message Date
Victor Zverovich
76d326a2a2 Enable grisu for general format 2019-03-17 09:48:50 -07:00
Victor Zverovich
c21c6b8c4b Move enable_if to template params 2019-03-16 15:15:38 -07:00
Victor Zverovich
97619e27a2 More fixed precision tests 2019-03-15 10:20:20 -07:00
Victor Zverovich
a82b3680dc More tests and fixed precision fixes 2019-03-13 19:47:07 -07:00
Victor Zverovich
e28429ee73 Prevent overflow with zero precision 2019-03-13 10:46:25 -07:00
Victor Zverovich
49bbf3c876 Simplify shadowing warning fix 2019-03-13 08:29:37 -07:00
Ivan Shynkarenka
e06523361d Visual Studio 2017: warning C4456: declaration of 'result' hides previous local declaration 2019-03-11 14:15:23 -07:00
Victor Zverovich
4c66dad8c1 Refactor digit generation 2019-03-10 15:45:06 -07:00
Victor Zverovich
b1f7cca89e stop -> handler and swap args 2019-03-10 14:43:26 -07:00
Victor Zverovich
f90d33ca12 error_ulp -> error 2019-03-10 14:29:28 -07:00
Victor Zverovich
1632f72cbe Test get_round_direction 2019-03-10 11:14:50 -07:00
Victor Zverovich
8407f4cb24 Round close to zero fixed precision 2019-03-09 15:18:34 -08:00
Victor Zverovich
49d244c065 Don't emit more than precision digits (#1072) 2019-03-09 13:53:23 -08:00
Victor Zverovich
93d22dec35 Implement rounding up and clean up FP formatting 2019-03-09 10:40:36 -08:00
gawain
79b79f329e Add support for '%' type to output floating point values as a
percentage.

This helps with compatibility with Python's format strings.
2019-03-05 17:36:20 -08:00
Victor Zverovich
a97757736b Use grisu for fixed precision 2019-02-23 15:50:50 -10:00
Victor Zverovich
8af651be39 Implement fixed precision 2019-02-22 10:47:27 -10:00
Victor Zverovich
5b0006476a Make stopping condition configurable in grisu 2019-02-14 18:25:13 -08:00
Victor Zverovich
a44238f2ef Improve grisu 2019-02-13 20:03:27 -08:00
Victor Zverovich
83808076e3 Minor cleanup 2019-02-13 19:28:02 -08:00
Victor Zverovich
467520e7a4 Remove unused macro 2019-02-06 11:34:59 -08:00
Victor Zverovich
5a314a5288 Eliminate extra copy on floating-point formatting 2019-02-06 10:17:50 -08:00
Daniela Engert
31510cb437 Fix warnings from Visual Studio
Name hiding.

Signed-off-by: Daniela Engert <dani@ngrt.de>
2019-02-04 11:58:56 -08:00
Victor Zverovich
864b9a2202 Correct the comment 2019-02-04 08:29:39 -08:00
Victor Zverovich
1538336836 Remove unnecessary checks 2019-02-04 08:25:41 -08:00
Victor Zverovich
355eb6d29a Enable grisu for shortest roundtrip (default) formatting 2019-02-03 10:38:28 -08:00
Victor Zverovich
b8d34e0db3 Fix rounding 2019-02-02 09:19:46 -08:00
Victor Zverovich
e61cac687d Minor grisu improvements 2019-02-02 07:41:52 -08:00
Victor Zverovich
7ca8fc3b17 Fix a bogus warning 2019-01-30 07:06:40 -08:00
Victor Zverovich
58b6f8db48 Format the code using clang-format 2019-01-13 06:58:20 -08:00
Sign Bit
0bbdca5b8b Fix conversion warnings (#989)
* Fix sign conversion warnings

* Ignore unused local typedefs

* Remove cast reported as useless on GCC

* Remove warning on unused variable

* Enable conversion warning checking for pedantic build

* Fix sign-conversion warnings in headers
2018-12-20 06:24:19 -08:00
Victor Zverovich
0497875ff3 Stop the orgy of casts 2018-12-05 06:27:31 -08:00
Florin Iucha
77656c672c Fix sign-conversion warnings reported by Clang7 2018-12-03 16:22:59 -08:00
Victor Zverovich
9dcf127fa5 Workaround a bogus MSVC warning 2018-11-30 13:47:04 -08:00
Victor Zverovich
b8b06e3e10 Fix conversion warnings in Grisu 2018-11-30 10:37:40 -08:00
Victor Zverovich
fa1d4dbcfd Fix warnings 2018-11-28 16:15:15 -08:00
Victor Zverovich
b7b8548559 thousands_sep -> thousands_sep_impl (#939) 2018-11-20 15:43:17 -08:00
Victor Zverovich
f2ee988105 Improve locale support 2018-11-14 12:07:39 -08:00
Victor Zverovich
324eac1aa5 Make locales work with any character type 2018-10-28 09:03:27 -07:00
Victor Zverovich
0a96c032b9 Parameterize v*printf on string type (#920) 2018-10-25 13:52:08 -07:00
Victor Zverovich
2d2326a76d Fix compilation with older gcc 2018-10-23 07:31:24 -07:00
Victor Zverovich
13d472bd8c Compute output size for grisu 2018-10-18 17:16:50 -07:00
Victor Zverovich
dda47c9466 Merge min_digits and max_digits 2018-10-17 10:49:30 -07:00
Victor Zverovich
2924622157 Fix naming of basic_format_specs members 2018-10-17 10:13:10 -07:00
Victor Zverovich
bda5f9a556 Replace grisu2_specs with core_format_specs 2018-10-17 08:55:45 -07:00
Victor Zverovich
e8efdef8de Avoid extra copy 2018-10-17 08:19:46 -07:00
Victor Zverovich
50b18a3c10 Integrate Grisu 2018-10-14 14:33:25 -07:00
Victor Zverovich
699297520a Implement Grisu rounding 2018-10-13 11:18:54 -07:00
superfunc
939fbe5567 Remove basic_fixed_buffer.
Issue #873 indicates that this class is no longer required,
as it has been superseded by a new API.

Fixes #873
2018-10-09 06:51:01 -07:00
Victor Zverovich
38325248e5 Count width in code points (#628) 2018-10-03 20:09:46 -07:00