Built-in Functions → ceil

ceil() is a scalar arithmertic function that returns the smallest integer that is greater than, or equal to, its argument.

Signature

ceil(double exp)
  • double exp : an expression evaluating to double

Returns

int

Example

Find the integer nearest and above the double value 5.9.

ceil(5.9)

In this example, 6 as an int is returned.