# \`@rem\(\)\` and \`@mod\(\)\` take \`denominator \!= 0\`, not just \`denominator \> 0\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 84ae54fbe64a15301317716e7f901d81585332d5

Requested commit: 84ae54fbe64a15301317716e7f901d81585332d5

Commit: 84ae54fbe64a15301317716e7f901d81585332d5

Tree: 267187210435e50673405d4e79b518420f03252c

Author: IOKG04

Committer: IOKG04

## Message

```
`@rem()` and `@mod()` take `denominator != 0`, not just `denominator > 0`

https://github.com/ziglang/zig/issues/23635

I also added tests for `@rem()` with `denominator < 0` cause there were none before
I hope I added them in the correct place, if not I can change it ofc

```

## Parents

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

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