From: Edin Kadribasic Date: Thu, 16 Jan 2003 13:19:50 +0000 (+0000) Subject: Fixed bug #21648 X-Git-Tag: PHP_5_0_dev_before_13561_fix~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4e143b8be9aea5841574b2e6445fe47b7f4bf79;p=php Fixed bug #21648 --- diff --git a/ext/standard/math.c b/ext/standard/math.c index 62bf1a4b93..137b228d96 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -1011,7 +1011,7 @@ PHPAPI char *_php_math_number_format(double d, int dec, char dec_point, char tho /* allow for thousand separators */ if (thousand_sep) { - integral += integral / 3; + integral += (integral-1) / 3; } reslen = integral;