---
schema_version: "1"
id: 97b929f2db99886e7bd14f42795cd37301af411e58af704f0683153000d7ba7f
title: isInteger
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.11/dw-core-functions-isinteger.md
canonical_url: https://docs.mulesoft.com/dataweave/2.11/dw-core-functions-isinteger
source_site: docs.mulesoft.com
content_type: documentation
content_hash: f76350e14da3ab127ec6e042a359e49f1182dcefcb013c10170164e57403c701
description: MuleSoft Documentation Site
release: "2.11"
latest: false
---
---
product: DataWeave
version: 2.11
---

# isInteger

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## isInteger(number: Number): Boolean

Returns `true` if the given number is an integer (which lacks decimals), `false` if not.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>number</code></p></td><td><p>The number to evaluate.</p></td></tr></tbody></table>

### Example

This example indicates whether the input is an integer for different values. Note numbers within
strings get coerced to numbers.

#### Source

```DataWeave
%dw 2.0
output application/json
---
[isInteger(1), isInteger(2.0), isInteger(2.2), isInteger("1")]
```

#### Output

```JSON
[ true, true, false, true ]
```
