List of utility methods to do Number Abstract Value Get
abs()Number.prototype.define("abs", function() { return Math.abs(this) }) | |
abs()Number.prototype.abs = function () { return Math.abs(this.valueOf()); | |
abs()Number.prototype.abs = function(){ return Math.abs(this); }; | |
absRound(number)function absRound(number) { if (number < 0) { return Math.ceil(number); } else { return Math.floor(number); |