aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-17 14:38:08 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-17 14:38:08 -0500
commit5b1cc78c1ac23c83d9bd687b50b2c10baa1ad595 (patch)
tree93457b18c833abec5c56dfeef184a71fd77dd3ef /docs
parentf542a1b9a95679d5b5e33e14b0391d45fc609a1b (diff)
Mention reversed argument order of Modulus relative to C, etc. version
Diffstat (limited to 'docs')
-rw-r--r--docs/doc/arithmetic.html2
1 files changed, 1 insertions, 1 deletions
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 ⟩