351 lines
6.4 KiB
HTML
351 lines
6.4 KiB
HTML
|
<!DOCTYPE HTML>
|
||
|
<HTML LANG="en-us"
|
||
|
><HEAD
|
||
|
><TITLE
|
||
|
>integer | Common Lisp Nova Spec</TITLE
|
||
|
><META CHARSET="US-ASCII"
|
||
|
><LINK REL="canonical" HREF="t_integer.html"
|
||
|
><LINK REL="next" HREF="t_signed-byte.html" TYPE="text/html" TITLE="signed-byte"
|
||
|
><LINK REL="prev" HREF="t_ratio.html" TYPE="text/html" TITLE="ratio"
|
||
|
><LINK REL="up" HREF="12_2_Numbers_Dictionary.html" TYPE="text/html" TITLE="12.2 Numbers Dictionary"
|
||
|
><LINK REL="start" HREF="index.html" TYPE="text/html" TITLE="Common Lisp Nova Spec"
|
||
|
><META NAME="VIEWPORT" CONTENT="width=device-width, initial-scale=1.0"
|
||
|
><LINK REL="STYLESHEET" HREF="dpans.css%3F3909942064.css"
|
||
|
><SCRIPT SRC="dpans.js%3F3909942064"
|
||
|
></SCRIPT
|
||
|
><SCRIPT SRC="apropos.js%3F3909942064"
|
||
|
></SCRIPT
|
||
|
></HEAD
|
||
|
><BODY
|
||
|
><DIV
|
||
|
><DIV CLASS="topnav"
|
||
|
><DIV CLASS="breadcrumb"
|
||
|
><SPAN CLASS="breadcrumb-item"
|
||
|
><A HREF="index.html"
|
||
|
>Common Lisp Nova Spec</A
|
||
|
></SPAN
|
||
|
> <SPAN CLASS="breadcrumb-item"
|
||
|
>→ <A HREF="12_Numbers.html"
|
||
|
>12. Numbers</A
|
||
|
></SPAN
|
||
|
> <SPAN CLASS="breadcrumb-item"
|
||
|
>→ <A HREF="12_2_Numbers_Dictionary.html"
|
||
|
>12.2 Numbers Dictionary</A
|
||
|
></SPAN
|
||
|
> <SPAN CLASS="breadcrumb-item"
|
||
|
>→ <A HREF="t_integer.html"
|
||
|
>integer</A
|
||
|
></SPAN
|
||
|
></DIV
|
||
|
><DIV CLASS="apropos"
|
||
|
><DIV CLASS="apropos-io"
|
||
|
><A HREF="t_ratio.html" CLASS="prev"
|
||
|
>←</A
|
||
|
><SPAN ID="apropos-label"
|
||
|
>Apropos </SPAN
|
||
|
><INPUT ID="apropos" AUTOFOCUS="AUTOFOCUS" PLACEHOLDER="Type here to search" ONINPUT="aproposInput(this);" ONKEYUP="aproposKeyup(event);" ONCHANGE="aproposChange(this);" ONFOCUS="aproposFocus(this);" ONFOCUSOUT="aproposFocusout(this);"
|
||
|
><A HREF="t_signed-byte.html" CLASS="next"
|
||
|
>→</A
|
||
|
></DIV
|
||
|
><DIV ID="apropos-res"
|
||
|
></DIV
|
||
|
></DIV
|
||
|
></DIV
|
||
|
><DIV CLASS="matter"
|
||
|
><DIV CLASS="com"
|
||
|
><DIV CLASS="begincom"
|
||
|
><HR
|
||
|
><TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0"
|
||
|
><TR
|
||
|
><TD ALIGN="LEFT" VALIGN="BASELINE" WIDTH="100%" CLASS="name"
|
||
|
><SPAN CLASS="idx" DATA-KIND="idxref" DATA-TERM="integer"
|
||
|
></SPAN
|
||
|
><B
|
||
|
>integer</B
|
||
|
></TD
|
||
|
><TD ALIGN="RIGHT" VALIGN="BASELINE" WIDTH="0" NOWRAP="NOWRAP" CLASS="ftype"
|
||
|
><I
|
||
|
>System</I
|
||
|
> <I
|
||
|
>Class</I
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><HR
|
||
|
></DIV
|
||
|
><UL CLASS="subtoc"
|
||
|
></UL
|
||
|
><DL
|
||
|
><DT
|
||
|
><B
|
||
|
>Class Precedence List</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
><A HREF="t_integer.html" CLASS="typeref"
|
||
|
><B
|
||
|
>integer</B
|
||
|
></A
|
||
|
>, <A HREF="t_rational.html" CLASS="typeref"
|
||
|
><B
|
||
|
>rational</B
|
||
|
></A
|
||
|
>, <A HREF="t_real.html" CLASS="typeref"
|
||
|
><B
|
||
|
>real</B
|
||
|
></A
|
||
|
>, <A HREF="t_number.html" CLASS="typeref"
|
||
|
><B
|
||
|
>number</B
|
||
|
></A
|
||
|
>, <A HREF="t_t.html" CLASS="typeref"
|
||
|
><B
|
||
|
>t</B
|
||
|
></A
|
||
|
></P
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>Description</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
>An <A HREF="26_1_Glossary.html#integer"
|
||
|
><EM CLASS="term"
|
||
|
>integer</EM
|
||
|
></A
|
||
|
> is a mathematical integer. There is no limit on the magnitude of an <A HREF="26_1_Glossary.html#integer"
|
||
|
><EM CLASS="term"
|
||
|
>integer</EM
|
||
|
></A
|
||
|
>. </P
|
||
|
><P CLASS="j"
|
||
|
>The <A HREF="26_1_Glossary.html#type"
|
||
|
><EM CLASS="term"
|
||
|
>types</EM
|
||
|
></A
|
||
|
> <A HREF="t_fixnum.html" CLASS="typeref"
|
||
|
><B
|
||
|
>fixnum</B
|
||
|
></A
|
||
|
> and <A HREF="t_bignum.html" CLASS="typeref"
|
||
|
><B
|
||
|
>bignum</B
|
||
|
></A
|
||
|
> form an <A HREF="26_1_Glossary.html#exhaustive_partition"
|
||
|
><EM CLASS="term"
|
||
|
>exhaustive partition</EM
|
||
|
></A
|
||
|
> of <A HREF="26_1_Glossary.html#type"
|
||
|
><EM CLASS="term"
|
||
|
>type</EM
|
||
|
></A
|
||
|
> <A HREF="t_integer.html" CLASS="typeref"
|
||
|
><B
|
||
|
>integer</B
|
||
|
></A
|
||
|
>.</P
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>Compound Type Specifier Kind</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
>Abbreviating.</P
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>Compound Type Specifier Syntax</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><TABLE CELLSPACING="0" CELLPADDING="0" RULES="GROUPS" STYLE="margin: 1ex 0"
|
||
|
><TBODY
|
||
|
><TR
|
||
|
><TD ALIGN="LEFT" VALIGN="BASELINE" STYLE=";"
|
||
|
><SPAN CLASS="cmtt"
|
||
|
>(integer</SPAN
|
||
|
> <SPAN CLASS="cmtt"
|
||
|
>[</SPAN
|
||
|
><SPAN CLASS="cmssi"
|
||
|
>lower-limit</SPAN
|
||
|
> <SPAN CLASS="cmr"
|
||
|
>[</SPAN
|
||
|
><SPAN CLASS="cmssi"
|
||
|
>upper-limit</SPAN
|
||
|
><SPAN CLASS="cmr"
|
||
|
>]</SPAN
|
||
|
><SPAN CLASS="cmtt"
|
||
|
>])</SPAN
|
||
|
></TD
|
||
|
></TR
|
||
|
></TBODY
|
||
|
></TABLE
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>Compound Type Specifier Arguments</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
><VAR CLASS="param"
|
||
|
>lower-limit</VAR
|
||
|
>, <VAR CLASS="param"
|
||
|
>upper-limit</VAR
|
||
|
> — <A HREF="26_1_Glossary.html#interval_designator"
|
||
|
><EM CLASS="term"
|
||
|
>interval designators</EM
|
||
|
></A
|
||
|
> for <A HREF="26_1_Glossary.html#type"
|
||
|
><EM CLASS="term"
|
||
|
>type</EM
|
||
|
></A
|
||
|
> <A HREF="t_integer.html" CLASS="typeref"
|
||
|
><B
|
||
|
>integer</B
|
||
|
></A
|
||
|
>. The defaults for each of <VAR CLASS="param"
|
||
|
>lower-limit</VAR
|
||
|
> and <VAR CLASS="param"
|
||
|
>upper-limit</VAR
|
||
|
> is the <A HREF="26_1_Glossary.html#symbol"
|
||
|
><EM CLASS="term"
|
||
|
>symbol</EM
|
||
|
></A
|
||
|
> <SPAN CLASS="misc"
|
||
|
><B
|
||
|
>*</B
|
||
|
></SPAN
|
||
|
>.</P
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>Compound Type Specifier Description</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
>This denotes the <A HREF="26_1_Glossary.html#integer"
|
||
|
><EM CLASS="term"
|
||
|
>integers</EM
|
||
|
></A
|
||
|
> on the interval described by <VAR CLASS="param"
|
||
|
>lower-limit</VAR
|
||
|
> and <VAR CLASS="param"
|
||
|
>upper-limit</VAR
|
||
|
>.</P
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>See Also</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
>Figure 2–9, <A HREF="2_3_Interpretation_of_Tokens.html#sec_2_3_2" CLASS="secref"
|
||
|
><SPAN CLASS="cmr"
|
||
|
>Section</SPAN
|
||
|
> <SPAN CLASS="cmr"
|
||
|
>2.3.2</SPAN
|
||
|
> <SPAN CLASS="cmr"
|
||
|
>(Constructing</SPAN
|
||
|
> <SPAN CLASS="cmr"
|
||
|
>Numbers</SPAN
|
||
|
> <SPAN CLASS="cmr"
|
||
|
>from</SPAN
|
||
|
> <SPAN CLASS="cmr"
|
||
|
>Tokens)</SPAN
|
||
|
></A
|
||
|
>, <A HREF="22_1_The_Lisp_Printer.html#sec_22_1_3_1_1" CLASS="secref"
|
||
|
><SPAN CLASS="cmr"
|
||
|
>Section</SPAN
|
||
|
> <SPAN CLASS="cmr"
|
||
|
>22.1.3.1.1</SPAN
|
||
|
> <SPAN CLASS="cmr"
|
||
|
>(Printing</SPAN
|
||
|
> <SPAN CLASS="cmr"
|
||
|
>Integers)</SPAN
|
||
|
></A
|
||
|
></P
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>Notes</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
>The <A HREF="26_1_Glossary.html#type"
|
||
|
><EM CLASS="term"
|
||
|
>type</EM
|
||
|
></A
|
||
|
> <CODE CLASS="f"
|
||
|
>(integer <I CLASS="i"
|
||
|
><I
|
||
|
>lower</I
|
||
|
></I
|
||
|
> <I CLASS="i"
|
||
|
><I
|
||
|
>upper</I
|
||
|
></I
|
||
|
>)</CODE
|
||
|
>, where <I CLASS="i"
|
||
|
><I
|
||
|
>lower</I
|
||
|
></I
|
||
|
> and <I CLASS="i"
|
||
|
><I
|
||
|
>upper</I
|
||
|
></I
|
||
|
> are <A HREF="v_most-positive-fixnum.html" CLASS="conref"
|
||
|
><B
|
||
|
>most-negative-fixnum</B
|
||
|
></A
|
||
|
> and <A HREF="v_most-positive-fixnum.html" CLASS="conref"
|
||
|
><B
|
||
|
>most-positive-fixnum</B
|
||
|
></A
|
||
|
>, respectively, is also called <A HREF="t_fixnum.html" CLASS="typeref"
|
||
|
><B
|
||
|
>fixnum</B
|
||
|
></A
|
||
|
>. </P
|
||
|
><P CLASS="j"
|
||
|
>The <A HREF="26_1_Glossary.html#type"
|
||
|
><EM CLASS="term"
|
||
|
>type</EM
|
||
|
></A
|
||
|
> <CODE CLASS="f"
|
||
|
>(integer 0 1)</CODE
|
||
|
> is also called <A HREF="t_bit.html" CLASS="typeref"
|
||
|
><B
|
||
|
>bit</B
|
||
|
></A
|
||
|
>. The <A HREF="26_1_Glossary.html#type"
|
||
|
><EM CLASS="term"
|
||
|
>type</EM
|
||
|
></A
|
||
|
> <CODE CLASS="f"
|
||
|
>(integer 0 *)</CODE
|
||
|
> is also called <A HREF="t_unsigned-byte.html" CLASS="typeref"
|
||
|
><B
|
||
|
>unsigned-byte</B
|
||
|
></A
|
||
|
>.</P
|
||
|
></DD
|
||
|
></DL
|
||
|
></DIV
|
||
|
></DIV
|
||
|
><DIV CLASS="footer"
|
||
|
><DIV CLASS="btmnav"
|
||
|
><A HREF="t_ratio.html" CLASS="prev"
|
||
|
>←</A
|
||
|
><A HREF="t_signed-byte.html" CLASS="next"
|
||
|
>→</A
|
||
|
></DIV
|
||
|
><DIV CLASS="trail"
|
||
|
>Conversion to HTML copyright 2023 by Gilbert Baumann</DIV
|
||
|
></DIV
|
||
|
></DIV
|
||
|
><SCRIPT
|
||
|
>domReady();</SCRIPT
|
||
|
></BODY
|
||
|
></HTML
|
||
|
>
|