Artifact 21680558fce1051ee1ae1596ef8ee148ca10471654cb272368181bbdb9a495b9:
- Executable file
r37/lisp/csl/html/r37_0110.html
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1254) [annotate] [blame] [check-ins using] [more...]
<A NAME=EQUAL> <TITLE>EQUAL</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>EQUAL</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> <P> <P> The operator <em>equal</em> is an infix binary comparison operator. It is identical with <em>=</em>. It returns <A HREF=r37_0122.html>true</A> if its two arguments are equal. <P> <P> <P> <H3> syntax: </H3> <expression> <em>equal</em> <expression> <P> <P> <P> Equality is given between floating point numbers and integers that have the same value. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> on rounded; a := 4; A := 4 b := 4.0; B := 4.0 if a equal b then write "true" else write "false"; true if a equal 5 then write "true" else write "false"; false if a equal sqrt(16) then write "true" else write "false"; true </TT></PRE><P>Comparison operators can only be used as conditions in conditional commands such as <em>if</em>...<em>then</em> and <em>repeat</em>...<em>until</em>. <equal> can also be used as a prefix operator. However, this use is not encouraged. <P> <P> <P>