0 Replies Latest reply on Sep 12, 2009 5:56 AM by stevo.mit

    Strange addition in Flex ?

    stevo.mit

      Hello,

      im making simple mathematical additons and everything is ok except one case:

       

      private var myNumber:Number = 3.67 + 1.19;   // 4.85999999999999

       

      I really dont undrestand that. I expected 4.86 but result is 4.85999999999.

      I also tried tried in Flash and i get same result.

       

      Any idea why this strange behavior ?

       

      thx

      stefan