On This Page

Home / Search/ Language Reference/ Functions/ Scalar Functions/ Mathematical Functions/ceil

ceil ​

The ceil function rounds up an input numeric expression’s value to the nearest matching integer.

Alias: ceiling (ceiling and ceil are synonyms).

Syntax ​

ceil(number)

Arguments ​

NameTypeRequiredDescription
numberint, long, or realYesThe value to round up.

Results ​

The smallest integer equal to, or greater than, the value of the specified numeric expression.

Examples ​

This example returns 100:

print num = 99.01
| extend newField = ceil( num )