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

# isInteger

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

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