Check if Numbers $1.00 / 1,000 calls

Natural number is valid

What this tool does

This tool checks whether the value you enter is a natural number. A natural number is a whole number that is zero or positive (for example, 0, 1, 2, 3).

It works by looking at the input text, trying to read it as a number, and then verifying that the value is not negative and has no decimal parts. The check is done automatically by the platform and may not account for every unusual number format.

Common uses

  • Validating counts of items (e.g., number of employees, orders).
  • Checking age or year inputs that must be whole numbers.
  • Filtering out invalid entries in forms to ensure only valid whole numbers are processed.

Input data

Parameter Required Example Description
number Yes 0 Enter the value you want to check as text (e.g., '0', '1', '+2'). This field is required.

Output data

Field Description
result Returns the actual result of the check as a yes/no indicator (e.g., 'true' if it is a natural number, 'false' otherwise).