Community Page
- www.tech-recipes.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Thanks mate, Just what I was looking for. It seemed to be a different way of doing things in Leopard than previous versions. Cheers, Mitch
- thanks, i couldnt remember.
- I did this in Garage band, but if forced me to trip the song to 8 seconds in order to send it to itunes ringtones - any ideas on this? Using the new 3GS.
- Please dont remove this Folder, It occupies only 315 MB and is useful for your Office 2003.... SRIKANTH
- that still wont work and i got no idea about registery could use help
Tech-Recipes
Cookbook of Tech TutorialsAS3: How to Convert Number to String | Computer programming | Tech-Recipes
Started by qdideas · 9 months ago
7 months ago
5 months ago
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
4 months ago
var D:String;
D = String(b * b - 4 * a * c);
2 months ago
1 month ago
1 month ago
1 month ago
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