Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2013-08-15 21:47:03 +0400
committermichael-grunder <michael.grunder@gmail.com>2013-08-15 21:47:03 +0400
commitdaef4b73a022f527e20091493bc7d1598012cb09 (patch)
treed08a259533eb5467d6246085f2f998925a382a45 /redis.c
parentcdd437ec5985e180323bac07d989adf054f2c023 (diff)
Increase double->string precision
When calling php library methods to convert doubles to strings we were only keeping 8 digits after the decimal point. For double precision numbers, 15 are stable. Redis uses the C library function strtod() to do the conversion, which appears to use the first 16 digits for aproximation: http://www.exploringbinary.com/how-strtod-works-and-sometimes-doesnt/ This hotfix increases the signifigant digits to 16, which I think is the correct number to pick here. Addresses issue #371
Diffstat (limited to 'redis.c')
0 files changed, 0 insertions, 0 deletions