你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ceiling()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Calculates the smallest integer greater than, or equal to, the specified numeric expression.

Syntax

ceiling(number)

Learn more about syntax conventions.

Parameters

Name Type Required Description
number int, long, or real ✔️ The value to round up.

Returns

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

Examples

print c1 = ceiling(-1.1), c2 = ceiling(0), c3 = ceiling(0.9)

Output

c1 c2 c3
-1 0 1