edink Thu Jan 16 08:19:51 2003 EDT
Modified files:
/php4/ext/standard math.c
Log:
Fixed bug #21648
Index: php4/ext/standard/math.c
diff -u php4/ext/standard/math.c:1.101 php4/ext/standard/math.c:1.102
--- php4/ext/standard/math.c:1.101 Fri Jan 10 08:32:24 2003
+++ php4/ext/standard/math.c Thu Jan 16 08:19:50 2003
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: math.c,v 1.101 2003/01/10 13:32:24 wez Exp $ */
+/* $Id: math.c,v 1.102 2003/01/16 13:19:50 edink Exp $ */
#include "php.h"
#include "php_math.h"
@@ -1011,7 +1011,7 @@
/* allow for thousand separators */
if (thousand_sep) {
- integral += integral / 3;
+ integral += (integral-1) / 3;
}
reslen = integral;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php