diff options
author | Derick Rethans <derick@php.net> | 2001-03-27 17:21:45 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2001-03-27 17:21:45 +0000 |
commit | c713967de336eea5b774b134a4e4023f1b8c946c (patch) | |
tree | 3cc3464e2ca23c06047d5bfefcf08395b753e85b /ext | |
parent | 59c32058fc057e739654be7671fa19645a4194ca (diff) | |
download | php-git-c713967de336eea5b774b134a4e4023f1b8c946c.tar.gz |
- 'Fix' for bug 10002
Diffstat (limited to 'ext')
-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--; } |