| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<html> |
| 3 |
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ --> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 6 |
<title>numberp (ANSI and GNU Common Lisp Document)</title> |
| 7 |
|
| 8 |
<meta name="description" content="numberp (ANSI and GNU Common Lisp Document)"> |
| 9 |
<meta name="keywords" content="numberp (ANSI and GNU Common Lisp Document)"> |
| 10 |
<meta name="resource-type" content="document"> |
| 11 |
<meta name="distribution" content="global"> |
| 12 |
<meta name="Generator" content="makeinfo"> |
| 13 |
<link href="index.html" rel="start" title="Top"> |
| 14 |
<link href="Numbers-Dictionary.html" rel="up" title="Numbers Dictionary"> |
| 15 |
<link href="cis.html" rel="next" title="cis"> |
| 16 |
<link href="_002arandom_002dstate_002a.html" rel="prev" title="*random-state*"> |
| 17 |
<style type="text/css"> |
| 18 |
<!-- |
| 19 |
a.summary-letter {text-decoration: none} |
| 20 |
blockquote.indentedblock {margin-right: 0em} |
| 21 |
div.display {margin-left: 3.2em} |
| 22 |
div.example {margin-left: 3.2em} |
| 23 |
div.lisp {margin-left: 3.2em} |
| 24 |
kbd {font-style: oblique} |
| 25 |
pre.display {font-family: inherit} |
| 26 |
pre.format {font-family: inherit} |
| 27 |
pre.menu-comment {font-family: serif} |
| 28 |
pre.menu-preformatted {font-family: serif} |
| 29 |
span.nolinebreak {white-space: nowrap} |
| 30 |
span.roman {font-family: initial; font-weight: normal} |
| 31 |
span.sansserif {font-family: sans-serif; font-weight: normal} |
| 32 |
ul.no-bullet {list-style: none} |
| 33 |
--> |
| 34 |
</style> |
| 35 |
|
| 36 |
|
| 37 |
</head> |
| 38 |
|
| 39 |
<body lang="en"> |
| 40 |
<span id="numberp"></span><div class="header"> |
| 41 |
<p> |
| 42 |
Next: <a href="cis.html" accesskey="n" rel="next">cis</a>, Previous: <a href="_002arandom_002dstate_002a.html" accesskey="p" rel="prev">*random-state*</a>, Up: <a href="Numbers-Dictionary.html" accesskey="u" rel="up">Numbers Dictionary</a> </p> |
| 43 |
</div> |
| 44 |
<hr> |
| 45 |
<span id="numberp-_005bFunction_005d"></span><h4 class="subsection">12.2.44 numberp [Function]</h4> |
| 46 |
|
| 47 |
<p><code>numberp</code> <i>object</i> ⇒ <i>generalized-boolean</i> |
| 48 |
</p> |
| 49 |
<span id="Arguments-and-Values_003a_003a-227"></span><h4 class="subsubheading">Arguments and Values::</h4> |
| 50 |
|
| 51 |
<p><i>object</i>—an <i>object</i>. |
| 52 |
</p> |
| 53 |
<p><i>generalized-boolean</i>—a <i>generalized boolean</i>. |
| 54 |
</p> |
| 55 |
<span id="Description_003a_003a-309"></span><h4 class="subsubheading">Description::</h4> |
| 56 |
|
| 57 |
<p>Returns <i>true</i> if <i>object</i> is of <i>type</i> <b>number</b>; |
| 58 |
otherwise, returns <i>false</i>. |
| 59 |
</p> |
| 60 |
<span id="Examples_003a_003a-212"></span><h4 class="subsubheading">Examples::</h4> |
| 61 |
|
| 62 |
<div class="example"> |
| 63 |
<pre class="example"> (numberp 12) ⇒ <i>true</i> |
| 64 |
(numberp (expt 2 130)) ⇒ <i>true</i> |
| 65 |
(numberp #c(5/3 7.2)) ⇒ <i>true</i> |
| 66 |
(numberp nil) ⇒ <i>false</i> |
| 67 |
(numberp (cons 1 2)) ⇒ <i>false</i> |
| 68 |
</pre></div> |
| 69 |
|
| 70 |
<span id="Notes_003a_003a-159"></span><h4 class="subsubheading">Notes::</h4> |
| 71 |
|
| 72 |
<div class="example"> |
| 73 |
<pre class="example"> (numberp <i>object</i>) ≡ (typep <i>object</i> 'number) |
| 74 |
</pre></div> |
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
</body> |
| 80 |
</html> |