Parameters, Value
Round up function returns the smallest integer that is no less than a certain numeric value.
Syntax:
- Format: ceil(
<raw>
) - Parameters: see table below
- Value: ATTR (number)
Name | Category | Specification | Description |
---|---|---|---|
raw | ATTR(number) | / | The numeric value to be calculated |
Common Usage
Example: round up -45.2 and returnjthe value after calculation
return ceil(-45.2)
Example: Find 10 @transfer edges, and return their amounts after rounding up
find().edges({@transfer}) as e
limit 10
return ceil(e.amount)