4 Replies Latest reply on Oct 1, 2010 6:10 AM by JoshBeall

    Adding 2 Numbers loosing precission. Odd results.

    Aron manager

      Hi,

       

      I don't know if this is a common issue, but for me this is a bit odd:

       

        var a:Number=44567.7;
      
        var b:Number=10.1;
      
        var c:Number=a+b;
      

       

       

      After this c becomes 44575.79999996. I know this must be because of precission, but seems pretty odd to me, and more when flex is supposed to serve as a "enterprise platform" to develop apps. Think about an accounting app .

       

      Is thre any solution for this? i think Rounding is not an option :/.

       

      Thanks in advance,

      Aron.