toPrecision()
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var x = 2 / 3; trace(x.toPrecision("3")); } } }