I've just stumble upon this problem... Take a look at below code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
creationComplete="onCreationComplete(event)">
<mx:Script>
<![CDATA[
import mx.events.FlexEvent;
public function onCreationComplete(event:FlexEvent):void{
var v:Number;
v = 540.54;
v += 1192.32;
v += 1192.33;
textInput.text = v.toString();
}
]]>
</mx:Script>
<mx:TextInput id="textInput" verticalCenter="0" horizontalCenter="0"/>
</mx:Application>
The result should be 2925.19, but I've got 2925.1899999999996.
Any tips?
Cheers
--
Marco Catunda