Is there a function to test if a String variable is a number value?

Posted by letseatfood on Stack Overflow See other posts from Stack Overflow or by letseatfood
Published on 2010-06-16T19:48:00Z Indexed on 2010/06/16 19:52 UTC
Read the original article Hit count: 210

Filed under:
|
|

Is there a way to test a string, such as the one below to see if it's an actual number value?

var theStr:String = '05';

I want to differentiate between the string value above and one such as this:

var theStr2:String = 'asdfl';

Thanks!

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about datatypes