-
Website
http://www.tech-recipes.com/ -
Original page
http://www.tech-recipes.com/rx/2333/as3_convert_number_to_string/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
davak
83 comments · 1 points
-
danishbacker
9 comments · 1 points
-
flexinfo
11 comments · 1 points
-
bej
4 comments · 1 points
-
dimithri
5 comments · 1 points
-
-
Popular Threads
-
Windows 7: How to Prevent the Mouse from Waking your PC
15 hours ago · 1 comment
-
Outlook 2010: Turn Off Attachment Preview
1 week ago · 1 comment
-
Gmail: How to Send SMS Messages Without Using Email
2 weeks ago · 2 comments
-
Windows 7 – Prevent Live Messenger from Opening at Start Up
1 week ago · 1 comment
-
Symfony: Drop Down List Box Without Submit Button
3 weeks ago · 1 comment
-
Windows 7: How to Prevent the Mouse from Waking your PC
I'm getting a number from an XML, looks like 123,456,78
i then myString.split(",").join("");
gives me "12345678"
now I want to use it in some math,
i tried Number(myString);
that just gives me the error above
var D:String;
D = String(b * b - 4 * a * c);
var num:Number = 23;
var StringConverted:String = "00"+String(num);
trace(StringConverted);
@justin
to convert a string to number use this
var TheString:String = "12345678";
var TheNumber:Number = parseInt(TheString);
trace(TheNumber * 2) // by using * u can test that its really a number