You are viewing content for 5.1 | 5.0 | 4.9 | 4.8 | 4.7 | 4.6 | 4.5 | 4.4 | 4.3 | Previous Releases


ceil

Returns the whole number larger than its argument.

Example

Find the integer nearest and above the double value 5.9.

ceil(5.9)

In this example, 6 as an int is returned.

Syntax

ceil(double expr x)
  • x : expression evaluating to double

Returns

int

Notes

Function ceil returns the smallest integer that is greater than, or equal to, its argument.


© Incorta, Inc. All Rights Reserved.