# D002 division_by_zero

URL: /docs/errors/D002
Markdown: /docs/errors/D002.md

> / or % was evaluated with a divisor of 0.

A runtime defect: the running program stops with it; no compile phase reports it, and `try` cannot catch it. `sakura explain D002` prints this explanation offline.

`/` or `%` was evaluated with a divisor of `0`. Check the divisor first or refine its type.

Runtime defects come from running programs, so `compiler/tests/ui` has no fixture for them; the explanation above names the repair.
