Language Reference ceil Method


Description

Determines the smallest integer greater than or equal to its numeric argument.

Syntax

var varName = Math.ceil( number )

Arguments

number: A numeric value for which the ceiling is desired.

Return Value

An integer value equal to the smallest integer greater than or equal to its numeric argument.

Remarks
See also floor.