224 lines
No EOL
5.3 KiB
HTML
224 lines
No EOL
5.3 KiB
HTML
<!DOCTYPE HTML>
|
|
<HTML LANG="en-us"
|
|
><HEAD
|
|
><TITLE
|
|
>*read-default-float-format* | Common Lisp Nova Spec</TITLE
|
|
><META CHARSET="US-ASCII"
|
|
><LINK REL="canonical" HREF="v_read-default-float-format.html"
|
|
><LINK REL="next" HREF="v_read-eval.html" TYPE="text/html" TITLE="*read-eval*"
|
|
><LINK REL="prev" HREF="v_read-base.html" TYPE="text/html" TITLE="*read-base*"
|
|
><LINK REL="up" HREF="23_2_Reader_Dictionary.html" TYPE="text/html" TITLE="23.2 Reader 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="23_Reader.html"
|
|
>23. Reader</A
|
|
></SPAN
|
|
> <SPAN CLASS="breadcrumb-item"
|
|
>→ <A HREF="23_2_Reader_Dictionary.html"
|
|
>23.2 Reader Dictionary</A
|
|
></SPAN
|
|
> <SPAN CLASS="breadcrumb-item"
|
|
>→ <A HREF="v_read-default-float-format.html"
|
|
>*read-default-float-format*</A
|
|
></SPAN
|
|
></DIV
|
|
><DIV CLASS="apropos"
|
|
><DIV CLASS="apropos-io"
|
|
><A HREF="v_read-base.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="v_read-eval.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="*read-default-float-format*"
|
|
></SPAN
|
|
><SPAN CLASS="cmsy"
|
|
>*</SPAN
|
|
><B
|
|
>read-default-float-format</B
|
|
><SPAN CLASS="cmsy"
|
|
>*</SPAN
|
|
></TD
|
|
><TD ALIGN="RIGHT" VALIGN="BASELINE" WIDTH="0" NOWRAP="NOWRAP" CLASS="ftype"
|
|
><I
|
|
>Variable</I
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
></DIV
|
|
><UL CLASS="subtoc"
|
|
></UL
|
|
><DL
|
|
><DT
|
|
><B
|
|
>Value Type</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
>one of the <A HREF="26_1_Glossary.html#atomic_type_specifier"
|
|
><EM CLASS="term"
|
|
>atomic type specifiers</EM
|
|
></A
|
|
> <A HREF="t_short-float.html" CLASS="typeref"
|
|
><B
|
|
>short-float</B
|
|
></A
|
|
>, <A HREF="t_short-float.html" CLASS="typeref"
|
|
><B
|
|
>single-float</B
|
|
></A
|
|
>, <A HREF="t_short-float.html" CLASS="typeref"
|
|
><B
|
|
>double-float</B
|
|
></A
|
|
>, or <A HREF="t_short-float.html" CLASS="typeref"
|
|
><B
|
|
>long-float</B
|
|
></A
|
|
>, or else some other <A HREF="26_1_Glossary.html#type_specifier"
|
|
><EM CLASS="term"
|
|
>type specifier</EM
|
|
></A
|
|
> defined by the <A HREF="26_1_Glossary.html#implementation"
|
|
><EM CLASS="term"
|
|
>implementation</EM
|
|
></A
|
|
> to be acceptable.</P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Initial Value</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
>The <A HREF="26_1_Glossary.html#symbol"
|
|
><EM CLASS="term"
|
|
>symbol</EM
|
|
></A
|
|
> <A HREF="t_short-float.html" CLASS="typeref"
|
|
><B
|
|
>single-float</B
|
|
></A
|
|
>.</P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Description</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
>Controls the floating-point format that is to be used when reading a floating-point number that has no <A HREF="26_1_Glossary.html#exponent_marker"
|
|
><EM CLASS="term"
|
|
>exponent marker</EM
|
|
></A
|
|
> or that has <CODE CLASS="f"
|
|
>e</CODE
|
|
> or <CODE CLASS="f"
|
|
>E</CODE
|
|
> for an <A HREF="26_1_Glossary.html#exponent_marker"
|
|
><EM CLASS="term"
|
|
>exponent marker</EM
|
|
></A
|
|
>. Other <A HREF="26_1_Glossary.html#exponent_marker"
|
|
><EM CLASS="term"
|
|
>exponent markers</EM
|
|
></A
|
|
> explicitly prescribe the floating-point format to be used. </P
|
|
><P CLASS="j"
|
|
>The printer uses <A HREF="v_read-default-float-format.html" CLASS="varref"
|
|
><B
|
|
>*read-default-float-format*</B
|
|
></A
|
|
> to guide the choice of <A HREF="26_1_Glossary.html#exponent_marker"
|
|
><EM CLASS="term"
|
|
>exponent markers</EM
|
|
></A
|
|
> when printing floating-point numbers.</P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Examples</B
|
|
></DT
|
|
><DD
|
|
><PRE CLASS="screen"
|
|
> (let ((*read-default-float-format* 'double-float))
|
|
(read-from-string "(1.0 1.0e0 1.0s0 1.0f0 1.0d0 1.0L0)"))
|
|
<SPAN CLASS="cmsy"
|
|
><SPAN CLASS="arrow"
|
|
>→</SPAN
|
|
></SPAN
|
|
> (1.0 1.0 1.0 1.0 1.0 1.0) ;Implementation has float format F.
|
|
<SPAN CLASS="cmsy"
|
|
><SPAN CLASS="arrow"
|
|
>→</SPAN
|
|
></SPAN
|
|
> (1.0 1.0 1.0s0 1.0 1.0 1.0) ;Implementation has float formats S and F.
|
|
<SPAN CLASS="cmsy"
|
|
><SPAN CLASS="arrow"
|
|
>→</SPAN
|
|
></SPAN
|
|
> (1.0d0 1.0d0 1.0 1.0 1.0d0 1.0d0) ;Implementation has float formats F and D.
|
|
<SPAN CLASS="cmsy"
|
|
><SPAN CLASS="arrow"
|
|
>→</SPAN
|
|
></SPAN
|
|
> (1.0d0 1.0d0 1.0s0 1.0 1.0d0 1.0d0) ;Implementation has float formats S, F, D.
|
|
<SPAN CLASS="cmsy"
|
|
><SPAN CLASS="arrow"
|
|
>→</SPAN
|
|
></SPAN
|
|
> (1.0d0 1.0d0 1.0 1.0 1.0d0 1.0L0) ;Implementation has float formats F, D, L.
|
|
<SPAN CLASS="cmsy"
|
|
><SPAN CLASS="arrow"
|
|
>→</SPAN
|
|
></SPAN
|
|
> (1.0d0 1.0d0 1.0s0 1.0 1.0d0 1.0L0) ;Implementation has formats S, F, D, L.</PRE
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
></DIV
|
|
><DIV CLASS="footer"
|
|
><DIV CLASS="btmnav"
|
|
><A HREF="v_read-base.html" CLASS="prev"
|
|
>←</A
|
|
><A HREF="v_read-eval.html" CLASS="next"
|
|
>→</A
|
|
></DIV
|
|
><DIV CLASS="trail"
|
|
>Conversion to HTML copyright 2023 by Gilbert Baumann</DIV
|
|
></DIV
|
|
></DIV
|
|
><SCRIPT
|
|
>domReady();</SCRIPT
|
|
></BODY
|
|
></HTML
|
|
> |