1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/tests/basic
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
2020-09-26 23:47:04 -07:00
2020-09-26 23:47:04 -07:00
2021-04-13 12:09:37 +02:00
2021-06-11 11:57:42 +02:00
2016-11-20 22:31:24 +01:00
2020-02-03 22:52:20 +01:00
2019-05-27 10:51:53 +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