# `JSONSchex.Compiler.Predicates.MultipleOf`
[🔗](https://github.com/xinz/jsonschex/blob/main/lib/jsonschex/compiler/predicates/multiple_of.ex#L1)

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.

# `valid?`

```elixir
@spec valid?(number() | String.t() | Decimal.t(), number() | String.t() | Decimal.t()) ::
  boolean()
```

Checks if `instance` is a multiple of `divisor`.
Uses `Decimal` for high precision.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
