diff options
author | Derick Rethans <derick@php.net> | 2001-03-27 17:24:01 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2001-03-27 17:24:01 +0000 |
commit | daf68d8d91d54b89efdcb7e1280abdb332968534 (patch) | |
tree | 37bf1b4a2d46c95c858f65f20583093f521b06a8 | |
parent | 8f710d827e3b8fa7dc4a5cb10e0e7b72e5cd24c9 (diff) | |
download | php-git-daf68d8d91d54b89efdcb7e1280abdb332968534.tar.gz |
- MFH (Fix for bug 10002)
-rw-r--r-- | ext/standard/formatted_print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index fc46f1c505..20f30071fa 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -92,7 +92,7 @@ static char *php_convert_to_decimal(double arg, int ndigits, int *decpt, int *si while (p1 < &cvt_buf[NDIG]) *p++ = *p1++; } else if (arg > 0) { - while ((fj = arg * 10) < 1) { + while ((fj = arg * 10.0) < 0.9999999) { arg = fj; r2--; } |