how to round number in js Math.round(2.5); var avg=10.55;console.log(Math.round(avg)); //Prints 11 www.codegrepper.comwww.stackoverflow.com