Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

ceil

ceil(Number): Number

Rounds a number upwards, returning the first full number above than the one provided.

Transform

        
     
1
2
3
4
5
6
7
8
9
%dw 2.0
output application/json
---

{
  a: ceil(1.5),
  b: ceil(2.2),
  c: ceil(3)
}
Output

        
     
1
2
3
4
5
{
  "a": 2,
  "b": 3,
  "c": 3
}