File r37/lisp/csl/html/r37_0083.html artifact c40a880738 part of check-in b7c3de82ef



<A NAME=FIXP>

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



<B>FIXP</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>operator</B><P>
<P>
 
 <P>
<P>
The <em>fixp</em> logical operator returns true if its argument is an integer. 
 <P> <H3> 
syntax: </H3>
<P>
<P>
<em>fixp</em>(&lt;expression&gt;) or <em>fixp</em> &lt;simple\_expression&gt; 
<P>
<P>
<P>
&lt;expression&gt; can be any valid REDUCE expression, &lt;simple\_expression
&gt; 
must be a single identifier or begin with a prefix operator. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>
if fixp 1.5 then write &quot;ok&quot; else write &quot;not&quot;;
			 


  not 


if fixp(a) then write &quot;ok&quot; else write &quot;not&quot;;
			 


  not 


a := 15; 

  A := 15 


if fixp(a) then write &quot;ok&quot; else write &quot;not&quot;;
			 


  ok

</TT></PRE><P>Logical operators can only be used inside conditional expressions 
such as 
<em>if</em>...<em>then</em> or <em>while</em>...<em>do</em>. 
<P>
<P>
<P>


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