Sha256: 34bfb369b508cb960efbcecd8a0bea29b0de9c19ef8dbf6b6768b0e749525e74

Contents?: true

Size: 540 Bytes

Versions: 8

Compression:

Stored size: 540 Bytes

Contents

//>>built
define("dojox/math/round",["dojo","dojox"],function(_1,_2){
_1.getObject("math.round",true,_2);
_1.experimental("dojox.math.round");
_2.math.round=function(_3,_4,_5){
var _6=Math.log(Math.abs(_3))/Math.log(10);
var _7=10/(_5||10);
var _8=Math.pow(10,-15+_6);
return (_7*(+_3+(_3>0?_8:-_8))).toFixed(_4)/_7;
};
if((0.9).toFixed()==0){
var _9=_2.math.round;
_2.math.round=function(v,p,m){
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 _9(v,p,m)+(v>0?d:-d);
};
}
return _2.math.round;
});

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/math/round.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/math/round.js
dojox-rails-0.11.0 vendor/assets/javascripts/math/round.js
dojo-rails-0.9.4 vendor/assets/javascripts/dojox/math/round.js
dojo-rails-0.9.3 vendor/assets/javascripts/dojox/math/round.js
dojo-rails-0.9.2 vendor/assets/javascripts/dojox/math/round.js
dojo-rails-0.9.1 vendor/assets/javascripts/dojox/math/round.js
dojo-rails-0.9.0 vendor/assets/javascripts/dojox/math/round.js