From 5b1cc78c1ac23c83d9bd687b50b2c10baa1ad595 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Wed, 17 Nov 2021 14:38:08 -0500 Subject: Mention reversed argument order of Modulus relative to C, etc. version --- docs/doc/arithmetic.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/doc/arithmetic.html') 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 @@ 8 ⟨ 7 6 5 4 4 5 6 7 ⟩ -

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
 ⟨ 0 1 2 0 1 2 0 1 ⟩
 
-- 
cgit v1.2.3