Validate that a value is a finite number within a given range.
The value to validate; coerced to number via Number().
Number()
Minimum allowed value (inclusive). Defaults to -Infinity.
-Infinity
Maximum allowed value (inclusive). Defaults to Infinity.
Infinity
The validated number, or null if invalid or out of range.
Rejects NaN, Infinity, and out-of-range values from untrusted input (URL params, config).
Validate that a value is a finite number within a given range.