Decimal number is valid
What this tool does
This tool checks if the value you entered is a valid decimal number, such as 0.23 or 2. It confirms whether the input matches the standard format for numbers with whole and fractional parts.
The validation is based on a strict pattern match. If the input contains any non-numeric characters (except for the decimal point) or follows an unexpected format, the check will fail.
Common uses
- Verifying prices, percentages, or measurements in forms.
- Ensuring numerical data is correctly formatted before processing.
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. |