Debian Codegraph @

docsrc/xlisp/xlisp-doc/reference/number-not-lessp.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-or-equal]</nobr> function takes an
51 arbitrary number of numeric arguments. <nobr>It checks</nobr> to see if all
52 the numbers are monotonically <nobr>non-increasing</nobr>.
53 <a href="t.htm">&nbsp;T&nbsp;</a> is returned if 'expr1' is the arguments
54 are numerically, and monotonically <nobr>non-increasing</nobr>,
55 <a href="nil.htm">NIL</a> is returned otherwise. <nobr>For two</nobr>
56 arguments, this has the effect of testing if 'expr1' is greater than or
57 equal <nobr>to 'expr2'</nobr>.</p>
58
59 <h2>Examples</h2>
60
61 <pre class="example">
62 (&gt;= 1 2) =&gt; NIL
63 (&gt;= 1 1) =&gt; T
64 (&gt;= -1.5 -1.4) =&gt; NIL
65 (&gt;= 3 2 1) =&gt; T
66 (&gt;= 3 2 2) =&gt; T
67 (&gt;= 3 2 3) =&gt; NIL
68 (&gt;= "aa" "abc") =&gt; <font color="#AA0000">error: bad argument type</font>
69 (setq a 12 b 13.9) =&gt; 13.9 <font color="#008844">; set up A and B with values</font>
70 (&gt;= a b) =&gt; NIL
71 (&gt;= b a) =&gt; T
72 </pre>
73
74 <p>See <a href="setq.htm">setq</a>.</p>
75
76 <p>See also:</p>
77
78 <ul>
79 <li><nobr>Contents &rarr; <a href="../manual/contents.htm#arithmetic-functions">Arithmetic Functions</a></nobr></li>
80 </ul>
81
82 <p><nobr>&nbsp;&nbsp;<a href="#top">Back to Top</nobr></a></p>
83
84 <hr>
85
86 <a href="../start.htm">Nyquist / XLISP 2.0</a>&nbsp; -&nbsp;
87 <a href="../manual/contents.htm">Contents</a> |
88 <a href="../tutorials/tutorials.htm">Tutorials</a> |
89 <a href="../examples/examples.htm">Examples</a> |
90 <a href="reference-index.htm">Reference</a>
91
92 </body></html>