[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 37/41: doc/groff.texi: Relocate material.
From: |
G. Branden Robinson |
Subject: |
[groff] 37/41: doc/groff.texi: Relocate material. |
Date: |
Fri, 18 Mar 2022 00:41:32 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 2661eba130bf5b3dba06fe0e68b91a507c6d1eec
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Mar 18 02:42:56 2022 +1100
doc/groff.texi: Relocate material.
Resequence presentation of operators in numeric expressions.
This prepares for a subsequent commit.
---
doc/groff.texi | 82 +++++++++++++++++++++++++++++-----------------------------
1 file changed, 41 insertions(+), 41 deletions(-)
diff --git a/doc/groff.texi b/doc/groff.texi
index c6c29d9f..dd9e5721 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -5759,6 +5759,47 @@ Arithmetic: @samp{+} (addition), @samp{-} (subtraction),
@samp{/}
for computing results is @samp{int}, which is usually a 32-bit signed
integer.
+@item
+@cindex unary operators
+@cindex operators, unary
+@opindex -
+@opindex +
+@opindex !
+@cindex @code{if} request, and the @samp{!} operator
+@cindex @code{while} request, and the @samp{!} operator
+Unary operators: @samp{-} (negating, i.e., changing the sign), @samp{+}
+(just for completeness; does nothing in expressions), @samp{!} (logical
+not; this works only within @code{if} and @code{while}
+requests).@footnote{For example, @samp{!(-1)} evaluates to `true'
+because GNU @code{troff} treats both negative numbers and zero as
+`false'.} See below for the use of unary operators in motion requests.
+
+@item
+@cindex scaling operator
+@cindex operator, scaling
+@opindex ;
+Scaling: @code{(@var{c};@var{e})}. Evaluate@tie{}@var{e}
+using@tie{}@var{c} as the default scaling indicator. If @var{c} is
+missing, ignore scaling indicators in the evaluation of@tie{}@var{e}.
+
+@item
+@cindex extremum operators (@code{>?}, @code{<?})
+@cindex operators, extremum (@code{>?}, @code{<?})
+@opindex >?
+@opindex <?
+Extrema: @samp{>?} (maximum), @samp{<?} (minimum).
+
+Example:
+
+@Example
+.nr x 5
+.nr y 3
+.nr z (\n[x] >? \n[y])
+@endExample
+
+@noindent
+The register@tie{}@code{z} now contains@tie{}5.
+
@item
@cindex comparison operators
@cindex operators, comparison
@@ -5784,21 +5825,6 @@ Comparison: @samp{<} (less than), @samp{>} (greater
than), @samp{<=}
@end ifinfo
Logical: @samp{&} (logical and), @samp{:} (logical or).
-@item
-@cindex unary operators
-@cindex operators, unary
-@opindex -
-@opindex +
-@opindex !
-@cindex @code{if} request, and the @samp{!} operator
-@cindex @code{while} request, and the @samp{!} operator
-Unary operators: @samp{-} (negating, i.e., changing the sign), @samp{+}
-(just for completeness; does nothing in expressions), @samp{!} (logical
-not; this works only within @code{if} and @code{while}
-requests).@footnote{For example, @samp{!(-1)} evaluates to `true'
-because GNU @code{troff} treats both negative numbers and zero as
-`false'.} See below for the use of unary operators in motion requests.
-
@cindex logical not, limitation in expression
@cindex expression, limitation of logical not in
The logical not operator, as described above, works only within
@@ -5819,32 +5845,6 @@ Example:
.\" Use this construct instead.
.if (\n[X]=1)&(\n[Y]=0) .nop X only
@endExample
-
-@item
-@cindex extremum operators (@code{>?}, @code{<?})
-@cindex operators, extremum (@code{>?}, @code{<?})
-@opindex >?
-@opindex <?
-Extrema: @samp{>?} (maximum), @samp{<?} (minimum).
-
-Example:
-
-@Example
-.nr x 5
-.nr y 3
-.nr z (\n[x] >? \n[y])
-@endExample
-
-@noindent
-The register@tie{}@code{z} now contains@tie{}5.
-
-@item
-@cindex scaling operator
-@cindex operator, scaling
-@opindex ;
-Scaling: @code{(@var{c};@var{e})}. Evaluate@tie{}@var{e}
-using@tie{}@var{c} as the default scaling indicator. If @var{c} is
-missing, ignore scaling indicators in the evaluation of@tie{}@var{e}.
@end itemize
@cindex parentheses
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 37/41: doc/groff.texi: Relocate material.,
G. Branden Robinson <=