Javascript Number roundTo()

Description

Javascript Number roundTo()


Number.prototype.roundTo = function() {
    return 32 * Math.round(this / 32);
}



PreviousNext

Related