From 2ea02214b2fb6bedb58dbbd318ef171a9e146524 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 29 May 2006 03:08:07 +0000 Subject: Merge from 3.0 branch till 1099. --- framework/I18N/core/NumberFormat.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'framework/I18N/core') diff --git a/framework/I18N/core/NumberFormat.php b/framework/I18N/core/NumberFormat.php index d1184f86..8e715f15 100644 --- a/framework/I18N/core/NumberFormat.php +++ b/framework/I18N/core/NumberFormat.php @@ -122,7 +122,6 @@ class NumberFormat $string = (string)$number; - $decimal = $this->formatDecimal($string); $integer = $this->formatInteger(abs($number)); @@ -130,9 +129,9 @@ class NumberFormat $result = $integer.$decimal; else $result = $integer; - + //get the suffix - if($number > 0) + if($number >= 0) $suffix = $this->formatInfo->PositivePattern; else if($number < 0) $suffix = $this->formatInfo->NegativePattern; -- cgit v1.2.3