From c713967de336eea5b774b134a4e4023f1b8c946c Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 27 Mar 2001 17:21:45 +0000 Subject: [PATCH] - 'Fix' for bug 10002 --- ext/standard/formatted_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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--; } -- 2.40.0