Debian Codegraph @

docsrc/xlisp/xlisp-doc/reference/number-greaterp.htm

raw
1 <html><head><title>XLISP &gt;</title>
2
3 <link rel="stylesheet" type="text/css" href="reference.css">
4
5 </head>
6
7 <body>
8
9 <a href="../start.htm">Nyquist / XLISP 2.0</a>&nbsp; -&nbsp;
10 <a href="../manual/contents.htm">Contents</a> |
11 <a href="../tutorials/tutorials.htm">Tutorials</a> |
12 <a href="../examples/examples.htm">Examples</a> |
13 <a href="reference-index.htm">Reference</a>
14
15 <hr>
16
17 <h1>&gt;</h1>
18
19 <hr>
20
21 <p><table cellpadding="0" cellspacing="0" style="margin-left:10px"><tbody>
22 <tr valign="top">
23 <td><nobr>Type:</nobr></td>
24 <td><nobr>&nbsp;&nbsp;-&nbsp;&nbsp;</nobr></td>
25 <td width="100%"><nobr>function (subr)</nobr></td>
26 </tr>
27 <tr valign="top">
28 <td><nobr>Source:</nobr></td>
29 <td><nobr>&nbsp;&nbsp;-&nbsp;&nbsp;</nobr></td>
30 <td width="100%"><nobr>xlmath.c</nobr></td>
31 </tr>
32 </tbody></table></p>
33
34 <h2>Syntax</h2>
35
36 <p><div class="box">
37
38 <dl>
39 <dt><nobr>(&gt; <i>expr1 expr2</i> ...)</nobr></dt>
40 <dd><i>exprN</i> - a numeric expression<br>
41 returns - <a href="t.htm">&nbsp;T&nbsp;</a> if the results of
42 comparing the expressions are all true,
43 <a href="nil.htm">NIL</a> otherwise</dd>
44 </dl>
45
46 </div></p>
47
48 <h2>Description</h2>
49
50 <p>The <nobr>'&gt;' [greater-than]</nobr> function takes an arbitrary number
51 of numeric arguments. <nobr>It checks</nobr> to see if all the numbers are
52 monotonically decreasing. <a href="t.htm">&nbsp;T&nbsp;</a> is returned if
53 the arguments are numerically, and monotonically decreasing,
54 <a href="nil.htm">NIL</a> is returned otherwise. <nobr>For two</nobr>
55 arguments, this has the effect of testing if 'expr1' is greater than
56 'expr2'.</p>
57
58 <h2>Examples</h2>
59
60 <pre class="example">
61 (&gt; 1 1) =&gt; NIL
62 (&gt; 1 2) =&gt; NIL
63 (&gt; 2.0 1.99) =&gt; T
64 (&gt; 3 2 1) =&gt; T
65 (&gt; 3 2 2) =&gt; NIL
66 (&gt; "aa" "aa") =&gt; <font color="#AA0000">error: bad argument type</font>
67 (setq a 12 b 99.9) =&gt; 99.9 <font color="#008844">; set up A and B with values</font>
68 (&gt; a b) =&gt; NIL
69 (&gt; b a) =&gt; T
70 </pre>
71
72 <p>See <a href="setq.htm">setq</a>.</p>
73
74 <p>See also:</p>
75
76 <ul>
77 <li><nobr>Contents &rarr; <a href="../manual/contents.htm#arithmetic-functions">Arithmetic Functions</a></nobr></li>
78 </ul>
79
80 <p><nobr>&nbsp;&nbsp;<a href="#top">Back to Top</nobr></a></p>
81
82 <hr>
83
84 <a href="../start.htm">Nyquist / XLISP 2.0</a>&nbsp; -&nbsp;
85 <a href="../manual/contents.htm">Contents</a> |
86 <a href="../tutorials/tutorials.htm">Tutorials</a> |
87 <a href="../examples/examples.htm">Examples</a> |
88 <a href="reference-index.htm">Reference</a>
89
90 </body></html>