---
schema_version: "1"
id: aaeaa2ccbef09b350ca521c533a0c102d151b0e08473a88d587c59c71b105f1f
title: isDecimal
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-core-functions-isdecimal.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-core-functions-isdecimal
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 3cd0fef9fa3edcff51d8763df4f6055eb28b2bfb3a8bb125a8cf8c5c6412f9ec
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

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