You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/10/18 07:43:22 UTC

[05/30] git commit: [flex-asjs] [refs/heads/develop] - fix currencyformatter

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 <ah...@apache.org>
Authored: Mon Oct 13 12:40:12 2014 -0700
Committer: Alex Harui <ah...@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;
 		}