Number is between
What this tool does
This tool helps you check if a specific number falls within a defined range. It is useful for validating data that must meet certain minimum and maximum limits. By entering three values, you can quickly verify if the first number is logically between the other two.
When to use it
- Checking if a numeric code fits within an allowed range.
- Validating that a measured value is not too low or too high.
- Confirming that an ID or index falls between two boundaries.
- Simple data entry checks for numerical fields.
What to expect
The tool will return a simple yes or no answer. A yes means the first number is inside the range. A no means it is outside.
Limitations
- The check is strict; the number must be greater than or equal to the lower bound and less than or equal to the upper bound.
- The tool works best with whole numbers or standard decimals.
- If the input numbers are not valid, the tool may return a default negative result.
When it fails
- If you enter text that cannot be read as a number.
- If the required fields are left empty.
- If the first number is smaller than the lower bound or larger than the upper bound.
Good to know
- The order of the range matters; ensure the lower bound is entered in the second field and the upper bound in the third.
- The result indicates only whether the value is within the specified limits, not if the value itself is valid for other reasons.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
number1 | Yes | 23 | Enter the main number you want to check. Example: 23. |
number2 | Yes | 21 | Enter the lower limit of the range. Example: 21. |
number3 | Yes | 24 | Enter the upper limit of the range. Example: 24. |
Output data
| Field | Description |
|---|---|
result | Shows whether the check was successful (true) or not (false). Example: true. |