summaryrefslogtreecommitdiffstats
path: root/doc/mathop.n
diff options
context:
space:
mode:
Diffstat (limited to 'doc/mathop.n')
-rw-r--r--doc/mathop.n10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/mathop.n b/doc/mathop.n
index 5a6ba4e..e359276 100644
--- a/doc/mathop.n
+++ b/doc/mathop.n
@@ -1,4 +1,4 @@
-.\" -*- nroff -*-
+.\"
.\" Copyright (c) 2006-2007 Donal K. Fellows.
.\"
.\" See the file "license.terms" for information on usage and redistribution
@@ -131,8 +131,9 @@ Each \fInumber\fR must have an integral value. Note that Tcl defines this
operation exactly even for negative numbers, so that the following equality
holds true:
.RS
+.PP
.CS
-(\fIx \fB/ \fIy\fR) \fB* \fIy \fB== \fIx \fB-\fR (\fIx \fB% \fIy\fR)
+(\fIx \fB/ \fIy\fR) \fB* \fIy \fB== \fIx \fB\-\fR (\fIx \fB% \fIy\fR)
.CE
.RE
.TP
@@ -271,9 +272,11 @@ Returns whether the value \fIarg\fR is present in the list \fIlist\fR
Returns whether the value \fIarg\fR is not present in the list \fIlist\fR
(according to exact string comparison of elements).
.SH EXAMPLES
+.PP
The simplest way to use the operators is often by using \fBnamespace path\fR
to make the commands available. This has the advantage of not affecting the
set of commands defined by the current namespace.
+.PP
.CS
namespace path {\fB::tcl::mathop\fR ::tcl::mathfunc}
@@ -297,3 +300,6 @@ set sorted [\fB<=\fR {*}$list]
expr(n), mathfunc(n), namespace(n)
.SH KEYWORDS
command, expression, operator
+'\" Local Variables:
+'\" mode: nroff
+'\" End: