Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 32620FC5A for ; Wed, 1 May 2013 02:09:14 +0000 (UTC) Received: (qmail 66108 invoked by uid 500); 1 May 2013 02:09:13 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 66063 invoked by uid 500); 1 May 2013 02:09:13 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 66046 invoked by uid 99); 1 May 2013 02:09:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 May 2013 02:09:13 +0000 Date: Wed, 1 May 2013 02:09:13 +0000 (UTC) From: "Justin Mclean (JIRA)" To: dev@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLEX-25319) NumberBase loses precision on large numbers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-25319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Mclean updated FLEX-25319: --------------------------------- Labels: easyfix easytest (was: ) > NumberBase loses precision on large numbers > ------------------------------------------- > > Key: FLEX-25319 > URL: https://issues.apache.org/jira/browse/FLEX-25319 > Project: Apache Flex > Issue Type: Bug > Components: Formatters > Affects Versions: Adobe Flex SDK 4.0 (Release) > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Labels: easyfix, easytest > > Steps to reproduce: > 1. Call formatThousands with a large number like 111111111111111111111111111111111 > > Actual Results: > Formatted as 111,111,111,111,111,000,000,000,000,000,000 > > > Expected Results: > Formatted as 111,111,111,111,111,111,111,111,111,111,111 > > Workaround (if any): > > replace > var v:Number = Number(value); > > var isNegative:Boolean = (v < 0); > > var numStr:String = Math.abs(v).toString(); > with > var isNegative:Boolean = (Number(value) < 0); > var numStr:String = value; > if (isNegative) > numStr = numStr.substring(1); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira