%dw 2.0
output application/json
---
[ ceil(1.5), ceil(2.1), ceil(3) ]
DataWeave
ceil
ceil(number: Number): Number
Rounds a number up to the nearest whole number.
Parameters
Name | Description |
---|---|
|
The number to round. |
Example
This example rounds numbers up to the nearest whole numbers. Notice that 2.1
rounds up to 3
.
Source
Output
[ 2, 3, 3 ]
JSON