Decimal number is valid
What this tool does
This tool checks if a piece of text is a valid decimal number. It helps you ensure that data entered into your forms or systems is in the correct numeric format. This prevents errors when performing calculations or storing numerical values.
When to use it
- Validating product prices entered by users.
- Checking if a measurement input like weight or length is a proper number.
- Ensuring percentage fields contain valid numerical data.
What to expect
You will receive a clear yes or no answer indicating whether the input is a valid decimal number.
Limitations
- The tool only accepts simple decimal numbers.
- It does not support complex scientific notation.
- Text with letters will be marked as invalid.
When it fails
- If you provide text that contains letters or symbols.
- If you leave the number field empty.
Good to know
- Numbers like 0.23 or 2 are considered valid.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
number | Yes | 0.23 | Type a number that may include a decimal point (for example, '0.23'). This field is required; if left blank or filled with invalid text like 'A', the check will not be valid. |
Output data
| Field | Description |
|---|---|
result | Returns true if the input is a valid decimal number (for example, '0.23'), or false if it is not. |