Set rounding for NumberFormatter
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:TextInput text="{numberFormatter.format('1234.56789')}" /> <mx:NumberFormatter id="numberFormatter" rounding="nearest" /> </mx:Application>