File r37/lisp/csl/html/r37_0034.html artifact f35f15d525 part of check-in 3af273af29



<A NAME=greater>

<TITLE>greater</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>



<B>></B> _ _ _ <B>GREATER</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>operator</B><P>
<P>
 
The <em>&gt;</em> is an infix binary comparison operator that returns 
 true if its first argument is strictly greater than its second. 
<P>
<P>
 <P> <H3> 
syntax: </H3>
&lt;expression&gt; <em>&gt;</em> &lt;expression&gt; 
<P>
<P>
<P>
&lt;expression&gt; must evaluate to a number, e.g., integer, rational or 
floating point number. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>
on rounded; 

if 3.0 &gt; 3 then write &quot;different&quot; else write &quot;same&quot;; 


  same 


off rounded; 

a := 20; 

  A := 20 


if a &gt; 20 then write &quot;bigger&quot; else write &quot;not bigger&quot;; 


  not bigger 

</TT></PRE><P>The binary comparison operators can only be used for comparisons b
etween 
numbers or variables that evaluate to numbers. The truth values returned 
by such a comparison can only be used inside programming constructs, such 
as 
<A HREF=r37_0052.html>if</A>...<em>then</em>...<em>else</em> or 

<A HREF=r37_0056.html>repeat</A>...<em>until</em> or 
<A HREF=r37_0228.html>while</A>...<em>do</em>. 
<P>
<P>
<P>


REDUCE Historical
REDUCE Sourceforge Project | Historical SVN Repository | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]