You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/05/05 05:41:21 UTC

git commit: [flex-sdk] [refs/heads/develop] - FLEX-24764 number formatter was incorrectly round numbers with the correct number of digits

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 <jm...@apache.org>
Authored: Sun May 5 12:47:00 2013 +1000
Committer: Justin Mclean <jm...@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)
             {