Nikita Popov
604848188b
Add additional double to string APIs
...
zend_double_to_str() converts a double to string in the way that
(string) would (using %.*H using precision).
smart_str_append_double() provides some more fine control over
the precision, and whether a zero fraction should be appeneded
for whole numbers.
A caveat here is that raw calls to zend_gcvt and going through
s*printf has slightly different behavior for the degenarate
precision=0 case. zend_gcvt will add a dummy E+0 in that case,
while s*printf convert this to precision=1 and will not. I'm
going with the s*printf behavior here, which is more common,
but does result in a minor change to the precision.phpt test.
2021-08-02 16:14:53 +02:00
..
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2021-05-14 11:43:55 +02:00
2020-09-26 23:47:04 -07:00
2020-09-26 23:47:04 -07:00
2020-03-31 13:02:32 +02:00
2021-04-13 12:09:37 +02:00
2021-06-11 11:57:42 +02:00
2021-06-11 11:57:42 +02:00
2012-10-10 10:27:49 +08:00
2021-04-13 12:09:37 +02:00
2018-10-14 19:46:15 +02:00
2016-11-20 22:31:24 +01:00
2020-08-09 22:03:36 +02:00
2021-05-14 11:43:55 +02:00
2020-08-09 22:03:36 +02:00
2020-10-23 14:26:34 +02:00
2020-08-09 22:03:36 +02:00
2020-02-03 22:52:20 +01:00
2017-01-22 16:11:25 +00:00
2021-05-18 11:43:37 +02:00
2020-07-23 15:48:09 +02:00
2019-12-12 14:21:46 +01:00
2020-09-26 23:47:04 -07:00
2020-12-23 13:49:56 +01:00
2020-05-08 10:52:23 +02:00
2020-08-09 22:03:36 +02:00
2020-08-09 22:03:36 +02:00
2020-08-09 22:03:36 +02:00
2020-08-09 22:03:36 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-01-18 12:44:47 +01:00
2018-10-15 04:31:31 +02:00
2015-12-11 17:26:31 +08:00
2021-08-02 16:14:53 +02:00
2021-06-14 15:47:08 +02:00
2017-02-22 12:31:06 +01:00
2019-05-27 10:51:53 +02:00
2021-05-14 11:43:55 +02:00
2021-05-14 11:43:55 +02:00
2018-02-20 21:53:48 +01:00
2018-02-20 21:53:48 +01:00
2021-05-14 11:43:55 +02:00
2018-02-20 21:53:48 +01:00
2016-08-19 00:34:13 +02:00
2016-08-19 00:34:13 +02:00
2018-02-20 21:53:48 +01:00
2021-05-14 11:43:55 +02:00
2021-05-14 11:43:55 +02:00
2021-05-14 11:43:55 +02:00
2016-08-19 00:34:13 +02:00
2021-05-14 11:43:55 +02:00
2021-05-14 11:43:55 +02:00
2016-08-19 00:34:13 +02:00
2019-12-05 11:19:23 +01:00
2019-12-05 11:19:23 +01:00
2019-12-05 11:19:23 +01:00
2019-12-05 11:19:23 +01:00
2019-12-05 11:19:23 +01:00
2019-12-05 11:19:23 +01:00
2020-05-13 12:47:12 +02:00
2020-05-13 12:47:12 +02:00