The number to round
The number of decimal places where rounding takes place. Defaults to 0 for whole rounding. Must be non-negative.
Rounds next place to nearest value of increment/10. 10 by default.
Similar to dojo.number.round, but compensates for binary floating point artifacts
>>> 4.8-(1.1+2.2) 1.4999999999999996 >>> Math.round(4.8-(1.1+2.2)) 1 >>> dojox.math.round(4.8-(1.1+2.2)) 2 >>> ((4.8-(1.1+2.2))/100) 0.014999999999999996 >>> ((4.8-(1.1+2.2))/100).toFixed(2) "0.01" >>> dojox.math.round((4.8-(1.1+2.2))/100,2) 0.02 >>> dojox.math.round(10.71, 0, 2.5) 10.75 >>> dojo.number.round(162.295, 2) 162.29 >>> dojox.math.round(162.295, 2) 162.3