Math.ceil( x ) in ECMAScript 262

Return smallest integer which is larger than x (aka "round up").

Arguments

nametypedescription
x Number The value to operate upon.
Return Type
Number

Description

var x = Math.ceil(12.432);
// ** x is 13

var y = Math.ceil(-12.432);
// ** y is -12

var z = Math.ceil(1);
// ** z is 1