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

# 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 ]
```
