Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

isInteger

isInteger(Number): Boolean

Returns true is the number doesn’t have any decimals.

Transform

        
     
1
2
3
4
5
6
7
%dw 2.0
output application/json
---
{
  decimal: isInteger(1.1),
  integer: isInteger(1)
}
Output

        
     
1
2
3
4
  {
    "decimal": false,
    "integer": true
  }