diff options
| -rw-r--r-- | doc/arithmetic.md | 2 | ||||
| -rw-r--r-- | docs/doc/arithmetic.html | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/docs/doc/arithmetic.html b/docs/doc/arithmetic.html index 99dd7e11..e78314b4 100644 --- a/docs/doc/arithmetic.html +++ b/docs/doc/arithmetic.html @@ -194,7 +194,7 @@ <span class='Function'>⌽</span><span class='Modifier2'>⊸</span><span class='Function'>⌈</span> <span class='Function'>↕</span><span class='Number'>8</span> ⟨ 7 6 5 4 4 5 6 7 ⟩ </pre> -<p>Modulus (<code><span class='Function'>|</span></code>) is similar to the modular division operation written <code><span class='Value'>%</span></code> in C-like languages, but differs in its handling of negative arguments. It's defined to be <code><span class='Brace'>{</span><span class='Value'>𝕩</span><span class='Function'>-</span><span class='Value'>𝕨</span><span class='Function'>×⌊</span><span class='Value'>𝕩</span><span class='Function'>÷</span><span class='Value'>𝕨</span><span class='Brace'>}</span></code>, except that the multiplication should always return 0 if its right argument is 0, even if <code><span class='Value'>𝕨</span></code> is infinite.</p> +<p>Modulus (<code><span class='Function'>|</span></code>) is similar to the modular division operation written <code><span class='Value'>%</span></code> 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 <code><span class='Brace'>{</span><span class='Value'>𝕩</span><span class='Function'>-</span><span class='Value'>𝕨</span><span class='Function'>×⌊</span><span class='Value'>𝕩</span><span class='Function'>÷</span><span class='Value'>𝕨</span><span class='Brace'>}</span></code>, except that the multiplication should always return 0 if its right argument is 0, even if <code><span class='Value'>𝕨</span></code> is infinite.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=MyB8IOKGlTgKCjMgfCDCrzU=">↗️</a><pre> <span class='Number'>3</span> <span class='Function'>|</span> <span class='Function'>↕</span><span class='Number'>8</span> ⟨ 0 1 2 0 1 2 0 1 ⟩ |
