groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 51/51: [docs]: Fix "modulo" solecism.


From: G. Branden Robinson
Subject: [groff] 51/51: [docs]: Fix "modulo" solecism.
Date: Sun, 11 Sep 2022 08:15:57 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 5a1d89a4b59cc8b91d6b98f699258bf9a14041f5
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Sep 11 04:28:31 2022 -0500

    [docs]: Fix "modulo" solecism.
    
    "Modulus" is a noun and "modulo" an adjective[1], analogous to
    "multiplication" and "times", respectively.  (Okay, "modulus" and
    "multiplication" are _also_ adjectives, thus "multiplication operator".)
    Reportedly, the OED identifies "plus", "minus", "times" and so on as
    prepositions.
    
    To summarize, one says "5 {plus,minus,times,divided by,modulo} 2 is..."
    but "we now introduce the operation of
    {addition,subtraction,multiplication,division,modulus}".
    
    Where's Bertrand Russell when you need him?
    
    [1] arguably, and a Web search will reveal just how intransigent the
        argument is
---
 doc/groff.texi  | 12 ++++++------
 man/groff.7.man | 10 +++++-----
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/doc/groff.texi b/doc/groff.texi
index 3c22afd6d..aef05293a 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -5903,7 +5903,7 @@ man page for the @file{62bit.tmac} macro package.}
 @cindex subtraction
 @cindex multiplication
 @cindex division, truncating
-@cindex modulo
+@cindex modulus
 @opindex +
 @opindex -
 @opindex *
@@ -5912,9 +5912,9 @@ man page for the @file{62bit.tmac} macro package.}
 Arithmetic infix operators perform a function on the numeric expressions
 to their left and right; they are @code{+} (addition), @code{-}
 (subtraction), @code{*} (multiplication), @code{/} (truncating
-division), and @code{%} (modulo).  @dfn{Truncating division} rounds to
+division), and @code{%} (modulus).  @dfn{Truncating division} rounds to
 the integer nearer to zero, no matter how large the fractional portion.
-Overflow and division (or modulo) by zero are errors and abort
+Overflow and division (or modulus) by zero are errors and abort
 evaluation of a numeric expression.
 @cindex unary arithmetic operators
 @cindex operators, unary arithmetic
@@ -5932,7 +5932,7 @@ with parentheses to avoid confusion with the 
decrementation operator,
 discussed below.
 
 Observe the rounding behavior and effect of negative operands on the
-modulo and truncating division operators.
+modulus and truncating division operators.
 
 @Example
 .nr T 199/100
@@ -5947,8 +5947,8 @@ T=\n[T] U=\n[U] V=\n[V] W=\n[W] X=\n[X] Y=\n[Y] Z=\n[Z]
 @endExample
 
 @noindent
-The sign of the modulo of operands of mixed signs is determined by the
-sign of the first.  Division and modulo operators satisfy the following
+The sign of the modulus of operands of mixed signs is determined by the
+sign of the first.  Division and modulus operators satisfy the following
 property:@: given a dividend@tie{}@var{a} and a divisor@tie{}@var{b}, a
 quotient@tie{}@var{q} formed by @samp{(a / b)} and a
 remainder@tie{}@var{r} by @samp{(a % b)}, then @math{qb + r = a}.
diff --git a/man/groff.7.man b/man/groff.7.man
index 027df1397..96bbacbb3 100644
--- a/man/groff.7.man
+++ b/man/groff.7.man
@@ -907,7 +907,7 @@ Rf(CR) L.
 \-     subtraction
 *      multiplication
 /      truncating division
-%      modulo
+%      modulus
 _
 \f[R]unary\f[] +       assertion, motion, incrementation
 \f[R]unary\f[] \-      negation, motion, decrementation
@@ -968,14 +968,14 @@ they are
 (truncating division),
 and
 .B %
-(modulo).
+(modulus).
 .
 .I Truncating division
 rounds to the integer nearer to zero,
 no matter how large the fractional portion.
 .
 Overflow and division
-(or modulo)
+(or modulus)
 by zero are errors and abort evaluation of a numeric expression.
 .
 .
@@ -996,10 +996,10 @@ discussed below.
 .
 .
 .P
-The sign of the modulo of operands of mixed signs is determined by the
+The sign of the modulus of operands of mixed signs is determined by the
 sign of the first.
 .
-Division and modulo operators satisfy the following property:
+Division and modulus operators satisfy the following property:
 given a
 .RI dividend\~ a
 and a



reply via email to

[Prev in Thread] Current Thread [Next in Thread]