Internal parser helpers used by Pote.Validator.
Splits out the numeric parsing (hue, percentage, normalized, decimals)
from the format dispatch logic so that Pote.Validator remains a thin
façade.
Not part of the public API — used only by Pote.Validator.
Summary
Functions
Parses a hue string (0-360 degrees, up to 2 decimal places).
Parses a normalized value (0.0-1.0, up to 2 decimal places).
Parses a percentage (0-100, up to 2 decimal places).
Validates that a string has at most max_decimals decimal places.
Functions
Parses a hue string (0-360 degrees, up to 2 decimal places).
Parses a normalized value (0.0-1.0, up to 2 decimal places).
Parses a percentage (0-100, up to 2 decimal places).
@spec valid_decimals?(String.t(), non_neg_integer()) :: boolean()
Validates that a string has at most max_decimals decimal places.