An object containing the input properties.
The default value to return if the input is invalid.
OptionalexcludeZero?: booleanWhether to include 0 as valid input value or not (default is false)
A label describing the input (used in warnings).
OptionalinputValue?: numberThe numeric value to sanitize (optional).
A valid number. Either the provided inputValue if valid, or the defaultValue.
Sanitizes a numeric input by ensuring it is valid and falls back to a default value if not.