Clamp Number
Clamp a value into [min, max].
Clamps a value into an inclusive range. Unlike Round To this bounds, not rounds. Unlike Lerp Number this does not interpolate. Min > max fails.
What Clamp Number does
Clamps a value into an inclusive range. Unlike Round To this bounds, not rounds. Unlike Lerp Number this does not interpolate. Min > max fails.
The interactive controls for Clamp Number load after this article so crawlers still read the instructions. Path /clamp-number is the canonical address. Work happens on this device; Tool-You does not take a copy of the file or pasted text for Clamp Number.
How to use Clamp Number
- Confirm you need Clamp Number, not Round To (Round with delta.). Address: /clamp-number.
- Enter the numbers or dates Clamp Number uses. Clamp a value into [min, max].
- Read the result as Clamp Number defines it — not as Absolute Difference (Absolute difference with signed.). Clamps a value into an inclusive range. Unlike Round To this bounds, not rounds. Unlike Lerp Number this does not interpolate. Min > max fails.
- Clamp Number is an estimate in the browser, not professional advice. Value and min ≤ max.
- Need a different formula? Try Absolute Difference (Absolute difference with signed.) instead of stretching Clamp Number.
When not to use Clamp Number
Skip Clamp Number when a neighbor tool matches better — start with Round To or Absolute Difference — or when the description already warns the job will fail. In the tool’s own words: Clamps a value into an inclusive range. Unlike Round To this bounds, not rounds. Unlike Lerp Number this does not interpolate. Min > max fails.
Questions about Clamp Number
- What does Clamp Number do that other Calculate pages on this site do not?
- Clamps a value into an inclusive range. Unlike Round To this bounds, not rounds. Unlike Lerp Number this does not interpolate. Min > max fails. Short version: Clamp a value into [min, max].
- Does Clamp Number upload my file or text to Tool-You servers?
- No. Clamp Number runs in this browser tab. Files stay on the device. Limit note: Value and min ≤ max.
- Should I use Round To instead of Clamp Number?
- Use Clamp Number when you need Clamp a value into [min, max]. Use Round To when you need Round with delta. They share a category (Calculate) but not the same job.
- What are the limits of Clamp Number?
- Value and min ≤ max. Also: Clamps a value into an inclusive range. Unlike Round To this bounds, not rounds. Unlike Lerp Number this does not interpolate. Min > max fails.