1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>minusp (ANSI and GNU Common Lisp Document)</title>
<meta name="description" content="minusp (ANSI and GNU Common Lisp Document)">
<meta name="keywords" content="minusp (ANSI and GNU Common Lisp Document)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html" rel="start" title="Top">
<link href="Numbers-Dictionary.html" rel="up" title="Numbers Dictionary">
<link href="zerop.html" rel="next" title="zerop">
<link href="max.html" rel="prev" title="max">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en">
<span id="minusp"></span><div class="header">
<p>
Next: <a href="zerop.html" accesskey="n" rel="next">zerop</a>, Previous: <a href="max.html" accesskey="p" rel="prev">max</a>, Up: <a href="Numbers-Dictionary.html" accesskey="u" rel="up">Numbers Dictionary</a> </p>
</div>
<hr>
<span id="minusp_002c-plusp-_005bFunction_005d"></span><h4 class="subsection">12.2.17 minusp, plusp [Function]</h4>
<p><code>minusp</code> <i>real</i> ⇒ <i>generalized-boolean</i>
</p>
<p><code>plusp</code> <i>real</i> ⇒ <i>generalized-boolean</i>
</p>
<span id="Arguments-and-Values_003a_003a-203"></span><h4 class="subsubheading">Arguments and Values::</h4>
<p><i>real</i>—a <i>real</i>.
</p>
<p><i>generalized-boolean</i>—a <i>generalized boolean</i>.
</p>
<span id="Description_003a_003a-282"></span><h4 class="subsubheading">Description::</h4>
<p><b>minusp</b> returns <i>true</i> if <i>real</i> is less than zero;
otherwise, returns <i>false</i>.
</p>
<p><b>plusp</b> returns <i>true</i> if <i>real</i> is greater than zero;
otherwise, returns <i>false</i>.
</p>
<p>Regardless of whether an <i>implementation</i> provides distinct
representations for positive and negative <i>float</i> zeros,
<tt>(minusp -0.0)</tt> always returns <i>false</i>.
</p>
<span id="Examples_003a_003a-186"></span><h4 class="subsubheading">Examples::</h4>
<div class="example">
<pre class="example"> (minusp -1) ⇒ <i>true</i>
(plusp 0) ⇒ <i>false</i>
(plusp least-positive-single-float) ⇒ <i>true</i>
</pre></div>
<span id="Exceptional-Situations_003a_003a-79"></span><h4 class="subsubheading">Exceptional Situations::</h4>
<p>Should signal an error of <i>type</i> <b>type-error</b>
if <i>real</i> is not a <i>real</i>.
</p>
</body>
</html>
|