1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <html lang="en">
- <head>
- <title>math library predicates - avram - a virtual machine code interpreter</title>
- <meta http-equiv="Content-Type" content="text/html">
- <meta name="description" content="avram - a virtual machine code interpreter">
- <meta name="generator" content="makeinfo 4.13">
- <link title="Top" rel="start" href="index.html#Top">
- <link rel="up" href="math.html#math" title="math">
- <link rel="prev" href="math-library-operators.html#math-library-operators" title="math library operators">
- <link rel="next" href="math-library-conversion-functions.html#math-library-conversion-functions" title="math library conversion functions">
- <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
- <meta http-equiv="Content-Style-Type" content="text/css">
- <style type="text/css"><!--
- pre.display { font-family:inherit }
- pre.format { font-family:inherit }
- pre.smalldisplay { font-family:inherit; font-size:smaller }
- pre.smallformat { font-family:inherit; font-size:smaller }
- pre.smallexample { font-size:smaller }
- pre.smalllisp { font-size:smaller }
- span.sc { font-variant:small-caps }
- span.roman { font-family:serif; font-weight:normal; }
- span.sansserif { font-family:sans-serif; font-weight:normal; }
- --></style>
- </head>
- <body>
- <div class="node">
- <a name="math-library-predicates"></a>
- <p>
- Next: <a rel="next" accesskey="n" href="math-library-conversion-functions.html#math-library-conversion-functions">math library conversion functions</a>,
- Previous: <a rel="previous" accesskey="p" href="math-library-operators.html#math-library-operators">math library operators</a>,
- Up: <a rel="up" accesskey="u" href="math.html#math">math</a>
- <hr>
- </div>
- <h4 class="subsection">D.11.2 <code>math</code> library predicates</h4>
- <p>There is one binary predicate, <code>islessequal</code>, and several unary
- <a name="index-predicates-768"></a>predicates, <code>isinfinite</code>, <code>isnan</code>, <code>isnormal</code>, <code>isubnormal</code>
- and <code>iszero</code>.
- <p>The predicate <code>islessequal</code> takes a pair of floating point
- numbers <code>(</code><var>x</var><code>,</code><var>y</var><code>)</code> as an argument, and returns
- <code>nil</code> for a false result and <code>(nil,nil)</code> for a true result.
- <p>The unary predicates have the obvious interpretations as
- classification functions, and should probably be used in preference to
- comparison with constants in case the representations aren't unique.
- </body></html>
|