diff options
author | michael-grunder <michael.grunder@gmail.com> | 2013-08-15 21:47:03 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2013-08-15 21:47:03 +0400 |
commit | daef4b73a022f527e20091493bc7d1598012cb09 (patch) | |
tree | d08a259533eb5467d6246085f2f998925a382a45 /redis.c | |
parent | cdd437ec5985e180323bac07d989adf054f2c023 (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