flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [05/30] git commit: [flex-asjs] [refs/heads/develop] - fix currencyformatter
Date Sat, 18 Oct 2014 05:43:22 GMT
fix currencyformatter


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/edfe5385
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/edfe5385
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/edfe5385

Branch: refs/heads/develop
Commit: edfe538571ecf69b070a89b1696d0ded9d6b6a90
Parents: 3c2ddc5
Author: Alex Harui <aharui@apache.org>
Authored: Mon Oct 13 12:40:12 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Oct 17 22:38:42 2014 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/html/accessories/CurrencyFormatter.as      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/edfe5385/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/CurrencyFormatter.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/CurrencyFormatter.as
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/CurrencyFormatter.as
index cf3b1da..208b5ff 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/CurrencyFormatter.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/CurrencyFormatter.as
@@ -207,7 +207,7 @@ package org.apache.flex.html.accessories
 			if (value == null) return "";
 			
 			var num:Number = Number(value);
-            var source:String = num.toPrecision(fractionalDigits);
+            var source:String = num.toFixed(fractionalDigits);
 			
 			return currencySymbol + source;
 		}


Mime
View raw message