---
title: "isDigit"
canonical: "https://support.appfire.com/space/PSJ/15489237/isDigit"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | isDigit(str) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns "true" if the provided argument **str** is a string containing only digits.

Returns "true" if the provided argument **str** is a string containing only digits. 

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| str | String | Yes | Specifies a character expression. |

## Return Type

**Boolean (true/false)**

## Examples

### Example 1

```
wret = isDigit("2345");
print(wret);
```

Print **true**

### Example 2

```
wret = isDigit("aaa2345f.ff");
print (wret );
```

Print **false**

### Example 3

```
wret = isDigit("2.34");
print(wret);
```

Print **false**

## See also

> Macro (contentbylabel)