# allow division and remainder operators sometimes · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/29beb603b752928184f5f5e9f7479412de1e1951)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 29beb603b752928184f5f5e9f7479412de1e1951

Requested commit: 29beb603b752928184f5f5e9f7479412de1e1951

Commit: 29beb603b752928184f5f5e9f7479412de1e1951

Tree: 3d7432ccc7078fb67757ba18a407e32920db31a3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
allow division and remainder operators sometimes

when the values are comptime known and the result would be the same,
allow `/` and `%` for signed integers and floats.

closes #365

```

## Parents

- [157af4332a7b78672ff8ad76a00120455547e2fd](https://git.cafe/gitcafe/zig/commit/157af4332a7b78672ff8ad76a00120455547e2fd?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/29beb603b752928184f5f5e9f7479412de1e1951?format=markdown)
