Javascript Number round()

Description

Javascript Number round()


/**//from   w w w  .j av  a  2  s  . c o m
 * Rounds the current number
 *
 * @return {Integer}
 */
Number.prototype.round = function() {
 return Math.round(this);
};



PreviousNext

Related