NexJ Logo

Ceiling()

Gives the smallest following whole number not less than itself for the specified number. This function takes an integer or number value as an argument and returns a number value.

Syntax

Ceiling(<value>)

Input

value

integer, number, null

The number to find the ceiling value of.

Output

number

Examples

  • The expression Ceiling(2) returns 2.0.
  • The expression Ceiling(2.1) returns 3.0.
  • The expression Ceiling(-2) returns -2.0.
  • The expression Ceiling(-2.1) returns -2.0.