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 --- doc/arithmetic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/arithmetic.md') 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 -- cgit v1.2.3