7 Replies Latest reply on Jun 13, 2011 2:26 AM by Xtreame96

    Math.round produces inconsistent results


      We've been developing a tax calculator using the Flash 4 SDK in Flash Builder 4, and have experienced difficulties with rounding numbers - for example, the following statement:


           Alert.show(Math.round((8.325 * 100.0)) + ":" + Math.round(832.5));


      Both of the values rounded above should equal 833, however, the first one shows 832, while the second shows 833.  If both of the expressions inside the Math.round() functions equal 832.5, then how are the resulting values different?