numtest

A small snippet that shows how to test if an argument is a number or not

Privateunrated

Content

1 line
{if({args}=={m:trunc({args}/1)}):a number|{if({args}=={m:{args}/1}):a number|not a number}}
Raw JSON
{
  "id": 43224,
  "created_at": "2019-04-06T04:28:38.000Z",
  "tag_name": "numtest",
  "nsfw": false,
  "owner_id": "129419437911572480",
  "uses": 14,
  "description": "A small snippet that shows how to test if an argument is a number or not",
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "542013028795809792",
  "sharer": "129419437911572480",
  "content": "{if({args}=={m:trunc({args}/1)}):a number|{if({args}=={m:{args}/1}):a number|not a number}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T20:24:46.611Z"
}