12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <html lang="en">
- <head>
- <title>mpfr binary 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="mpfr.html#mpfr" title="mpfr">
- <link rel="prev" href="mpfr-binary-operators-with-a-natural-operand.html#mpfr-binary-operators-with-a-natural-operand" title="mpfr binary operators with a natural operand">
- <link rel="next" href="mpfr-unary-predicates.html#mpfr-unary-predicates" title="mpfr unary predicates">
- <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="mpfr-binary-predicates"></a>
- <p>
- Next: <a rel="next" accesskey="n" href="mpfr-unary-predicates.html#mpfr-unary-predicates">mpfr unary predicates</a>,
- Previous: <a rel="previous" accesskey="p" href="mpfr-binary-operators-with-a-natural-operand.html#mpfr-binary-operators-with-a-natural-operand">mpfr binary operators with a natural operand</a>,
- Up: <a rel="up" accesskey="u" href="mpfr.html#mpfr">mpfr</a>
- <hr>
- </div>
- <h4 class="subsection">D.14.4 <code>mpfr</code> binary predicates</h4>
- <p>These predicates take a pair of <code>mpfr</code> numbers
- <code>(</code><var>x</var><code>,</code><var>y</var><code>)</code> as arguments and perform a logical operation.
- If the result is true, they return <code>(nil,nil)</code>, and if it's
- false, they return <code>nil</code>.
- <ul>
- <li><code>equal_p</code>
- <li><code>unequal_abs</code>
- <li><code>greater_p</code>
- <li><code>greaterequal_p</code>
- <li><code>less_p</code>
- <li><code>lessequal_p</code>
- <li><code>lessgreater_p</code>
- </ul>
- <p>The name of the function <code>unequal_abs</code>, for comparing absolute
- values, has been changed from <code>mpfr_cmpabs</code> to avoid confusion
- with the virtual machine's <code>compare</code> combinator. The
- <code>compare</code> combinator returns a <code>(nil,nil)</code> result (i.e.,
- true) if the
- <a name="index-compare-combinator-796"></a>operands are equal and a <code>nil</code> result if they're unequal,
- opposite from <code>unequal_abs</code>.
- </body></html>
|