<!--

/**
 * @author		Wing Siu
 * @date		2005-06-28
 * @description	value-added function for Number prototype
 */

/* round the number with number of decimal */
Number.prototype.round = function (number_of_decimal){
	var roundedNumber = 0;

	roundedNumber = Math.round(this * Math.pow(10, number_of_decimal)) / Math.pow(10, number_of_decimal);

	//-- rounds number to number_of_decimal places
	return (roundedNumber);
}
//-->