Here you can find the source of abs()
Number.prototype.abs = function () { return Math.abs(this.valueOf()); }
Number.prototype.define("abs", function() { return Math.abs(this) })
Number.prototype.abs = function(){ return Math.abs(this); };
function absRound(number) { if (number < 0) { return Math.ceil(number); } else { return Math.floor(number);