Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 575 Bytes

dw-core-functions-ceil.adoc

File metadata and controls

43 lines (29 loc) · 575 Bytes

ceil

ceil(number: Number): Number

Rounds a number up to the nearest whole number.

Parameters

Name Description

number

The number to round.

Example

This example rounds numbers up to the nearest whole numbers. Notice that 2.1 rounds up to 3.

Source

%dw 2.0
output application/json
---

[ ceil(1.5), ceil(2.1), ceil(3) ]

Output

[ 2, 3, 3 ]