diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-11-17 14:38:08 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-11-17 14:38:08 -0500 |
| commit | 5b1cc78c1ac23c83d9bd687b50b2c10baa1ad595 (patch) | |
| tree | 93457b18c833abec5c56dfeef184a71fd77dd3ef /doc/arithmetic.md | |
| parent | f542a1b9a95679d5b5e33e14b0391d45fc609a1b (diff) | |
Mention reversed argument order of Modulus relative to C, etc. version
Diffstat (limited to 'doc/arithmetic.md')
| -rw-r--r-- | doc/arithmetic.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/arithmetic.md b/doc/arithmetic.md index 9497b8fe..60378ce7 100644 --- a/doc/arithmetic.md +++ b/doc/arithmetic.md @@ -130,7 +130,7 @@ Minimum (`⌊`) returns the larger of its two arguments, and Maximum (`⌈`) ret ⌽⊸⌈ ↕8 -Modulus (`|`) is similar to the modular division operation written `%` in C-like languages, but differs in its handling of negative arguments. It's defined to be `{𝕩-𝕨×⌊𝕩÷𝕨}`, except that the multiplication should always return 0 if its right argument is 0, even if `𝕨` is infinite. +Modulus (`|`) is similar to the modular division operation written `%` in C-like languages, but it takes the arguments in the opposite order, and differs in its handling of negative arguments. It's defined to be `{𝕩-𝕨×⌊𝕩÷𝕨}`, except that the multiplication should always return 0 if its right argument is 0, even if `𝕨` is infinite. 3 | ↕8 |
