Home / Javascript Tips Generated By ChatGPT / Rounding Numbers with Math.round in Javascript Round a number to the nearest integer. Source Code console.log(Math.round(2.5)); // 3