Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 535ff5d

Browse files
Actually set the precision to 16 places!
Addresses phpredis#371
1 parent daef4b7 commit 535ff5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ PHPAPI void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *red
6565
#define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \
6666
char dbl_decsep; \
6767
dbl_decsep = '.'; \
68-
dbl_str = _php_math_number_format_ex(dbl, 15, &dbl_decsep, 1, NULL, 0); \
68+
dbl_str = _php_math_number_format_ex(dbl, 16, &dbl_decsep, 1, NULL, 0); \
6969
dbl_len = strlen(dbl_str);
7070
#else
7171
#define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \
72-
dbl_str = _php_math_number_format(dbl, 15, '.', '\x00'); \
72+
dbl_str = _php_math_number_format(dbl, 16, '.', '\x00'); \
7373
dbl_len = strlen(dbl_str);
7474
#endif

0 commit comments

Comments
 (0)