aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r--doc/gawk.texi7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi
index f9a0d747..e16b8ae3 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -12219,9 +12219,14 @@ One possibly undesirable effect of this definition of remainder is that
-17 % 8 = -1
@end example
+@noindent
+This definition is compliant with the POSIX standard, which says that the @code{%}
+operator produces results equivalent to using the standard C
+@code{fmod()} function, and that function in turn works as just
+described.
+
In other @command{awk} implementations, the signedness of the remainder
may be machine-dependent.
-@c FIXME !!! what does posix say?
@cindex portability @subentry @code{**} operator and
@cindex @code{*} (asterisk) @subentry @code{**} operator