Validates numbers against the JSON Schema multipleOf rule. Handles arbitrary precision if Decimal is available. Falls back to native arithmetic with overflow protection if not.
multipleOf
Decimal
Checks if instance is a multiple of divisor. Uses Decimal for high precision.
instance
divisor
@spec valid?(number() | String.t() | Decimal.t(), number() | String.t() | Decimal.t()) :: boolean()