flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Virat Patil <Virat.Pa...@mastek.com>
Subject RE: Number Formatter Query
Date Thu, 16 Jan 2014 11:26:26 GMT
Sorry . kindly ignore previous test code.

Test Code
var value:String="14999999999999999188.00";
var formatter:NumberFormatter=new NumberFormatter();
value =formatter.format(value);
trace(value);

After trace the value i get is this "15,000,000,000,000,000,000"

-----Original Message-----
From: Virat Patil 
Sent: Thursday, January 16, 2014 4:39 PM
To: users@flex.apache.org
Subject: Number Formatter Query

Hello 

I am trying to format value using number formatter.

This is my test Code
var value:int="14999999999999999188.00";
var formatter:NumberFormatter=new NumberFormatter(); value =formatter.format(value); trace(value);
				
After trace the value i get is this "15,000,000,000,000,000,000"

It returns me above value. I think it is maximum number is there any other way to so that
I can get proper value.


Regards
Virat
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited,
unless specifically indicated to that effect. Mastek Limited does not accept any responsibility
or liability for it. This e-mail and attachments (if any) transmitted with it are confidential
and/or privileged and solely for the use of the intended person or entity to which it is addressed.
Any review, re-transmission, dissemination or other use of or taking of any action in reliance
upon this information by persons or entities other than the intended recipient is prohibited.
This e-mail and its attachments have been scanned for the presence of computer viruses. It
is the responsibility of the recipient to run the virus check on e-mails and attachments before
opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop
and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Mime
View raw message