a:5:{s:9:"#provides";s:16:"dojox.math.round";s:9:"#resource";s:13:"math/round.js";s:16:"dojox.math.round";a:7:{s:4:"type";s:8:"Function";s:10:"parameters";a:6:{s:5:"value";a:2:{s:4:"type";s:6:"Number";s:7:"summary";s:19:"The number to round";}s:6:"places";a:3:{s:8:"optional";b:1;s:4:"type";s:6:"Number";s:7:"summary";s:113:"The number of decimal places where rounding takes place. Defaults to 0 for whole rounding. Must be non-negative.";}s:9:"increment";a:3:{s:8:"optional";b:1;s:4:"type";s:6:"Number";s:7:"summary";s:67:"Rounds next place to nearest value of increment/10. 10 by default.";}s:1:"v";a:1:{s:4:"type";s:0:"";}s:1:"p";a:1:{s:4:"type";s:0:"";}s:1:"m";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:163:" var d = Math.pow(10, -p || 0), a = Math.abs(v); if(!v || a >= d || a * Math.pow(10, p + 1) < 5){ d = 0; } return round(v, p, m) + (v > 0 ? d : -d);";s:7:"summary";s:81:"Similar to dojo.number.round, but compensates for binary floating point artifacts";s:11:"description";s:712:"Rounds to the nearest value with the given number of decimal places, away from zero if equal, similar to Number.toFixed(). Rounding can be done by fractional increments also. Makes minor adjustments to accommodate for precision errors due to binary floating point representation of Javascript Numbers. See http://speleotrove.com/decimal/decifaq.html for more information. Because of this adjustment, the rounding may not be mathematically correct for full precision floating point values. The calculations assume 14 significant figures, so the accuracy will be limited to a certain number of decimal places preserved will vary with the magnitude of the input. This is not a substitute for decimal arithmetic.";s:7:"returns";s:6:"Number";s:8:"examples";a:1:{i:0;s:368:">>> 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";}}s:10:"dojox.math";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}