Converting to a Number with Precision: parseInt() and parseFloat().
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var nOne:Number = parseInt("13.3"); // 13 var nTwo:Number = parseFloat("13.3"); // 13.3 var nThree:Number = parseInt("54"); // 54 var nFour:Number = parseFloat("54"); // 54 } } }