Round a float up to the next integer in javascript February 17, 2023 by Tarik Use the Math.ceil[MDN] function var n = 4.3; alert(Math.ceil(n)); //alerts 5