diff options
author | wei <> | 2006-05-27 03:53:20 +0000 |
---|---|---|
committer | wei <> | 2006-05-27 03:53:20 +0000 |
commit | f21a3840e2486a298ec6976771888f02e3748ebb (patch) | |
tree | 7b5ee50c43a3289762dd7b505e10916c74e979da /framework/I18N/core | |
parent | d333551610131ab486ef566f20b9762645ef5ebb (diff) |
Fixed #162 and #163.
Diffstat (limited to 'framework/I18N/core')
-rw-r--r-- | framework/I18N/core/NumberFormat.php | 5 |
1 files changed, 2 insertions, 3 deletions
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;
|