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

# isDecimal

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

## isDecimal(number: Number): Boolean

Returns `true` if the given number contains a decimal, `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 a number has a decimal. Note that numbers within strings get coerced
to numbers.

#### Source

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

#### Output

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