CEILING (NoSQL query)
APPLIES TO:
NoSQL
Returns the smallest integer value greater than or equal to the specified numeric expression.
Syntax
CEILING(<numeric_expr>)
Arguments
Description | |
---|---|
numeric_expr |
A numeric expression. |
Return types
Returns a numeric expression.
Examples
The following example shows positive numeric, negative, and zero values evaluated with this function.
SELECT VALUE {
ceilingPositiveInteger: CEILING(123.45),
ceilingNegativeInteger: CEILING(-45.72),
ceilingZero: CEILING(0)
}
[
{
"ceilingPositiveInteger": 124,
"ceilingNegativeInteger": -45,
"ceilingZero": 0
}
]
Remarks
- This system function benefits from a range index.
Related content
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for