flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FLEX-24764 number formatter was incorrectly round numbers with the correct number of digits
Date Sun, 05 May 2013 03:41:21 GMT
Updated Branches:
  refs/heads/develop 34ba96e5e -> ac89b97c2


FLEX-24764 number formatter was incorrectly round numbers with the correct number of digits


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

Branch: refs/heads/develop
Commit: ac89b97c2f4457ddb6ba68b91fbc24ef18377d33
Parents: 34ba96e
Author: Justin Mclean <jmclean@apache.org>
Authored: Sun May 5 12:47:00 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Sun May 5 12:47:00 2013 +1000

----------------------------------------------------------------------
 .../framework/src/mx/formatters/NumberFormatter.as |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ac89b97c/frameworks/projects/framework/src/mx/formatters/NumberFormatter.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/formatters/NumberFormatter.as b/frameworks/projects/framework/src/mx/formatters/NumberFormatter.as
index 5ec83c6..04ff7be 100644
--- a/frameworks/projects/framework/src/mx/formatters/NumberFormatter.as
+++ b/frameworks/projects/framework/src/mx/formatters/NumberFormatter.as
@@ -602,7 +602,7 @@ public class NumberFormatter extends Formatter
         var numArrTemp:Array = numStr.split(".");
         var numFraction:int = numArrTemp[1] ? String(numArrTemp[1]).length : 0;
 
-        if (precision <= numFraction)
+        if (precision < numFraction)
         {
             if (rounding != NumberBaseRoundType.NONE)
             {


Mime
View raw message