Javascript Number round(fractionalDigits)

Description

Javascript Number round(fractionalDigits)


Number.prototype.$round = function(fractionalDigits) {
    return parseFloat(this.toFixed(fractionalDigits));
};



PreviousNext

Related