Trying to cast any other value will result in a nasty NaN (Not a Number) value being assigned instead: : Number parse « Data Type « Flash / Flex / ActionScript
Trying to cast any other value will result in a nasty NaN (Not a Number) value being assigned instead:
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
var dialASong:Number = Number("(718)");
trace(dialASong); // Displays: NaN
}
}
}