> For the complete documentation index, see [llms.txt](https://dbd-ts.gitbook.io/dbdts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dbd-ts.gitbook.io/dbdts/functions/isnumber.md).

# $isNumber

Checks whether given value is a number.

### Usage

```php
$isNumber[value]
```

This function has one param.

| Param | Description         | Type   | Required |
| ----- | ------------------- | ------ | -------- |
| value | The value to check. | String | Yes      |

### Examples

**Example #1**

```javascript
bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$isNumber[1]` //Returns true
})
```

**Example #2**

```javascript
bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$isNumber[e]` //Returns false
})
```
