⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flonums.html

📁 gcc手册
💻 HTML
字号:
<html lang="en">

<head>

<title>Using as</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="Using as">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

</head>

<body>

<div class="node">

<p>

Node:<a name="Flonums">Flonums</a>,

Previous:<a rel="previous" accesskey="p" href="Bignums.html#Bignums">Bignums</a>,

Up:<a rel="up" accesskey="u" href="Numbers.html#Numbers">Numbers</a>

<hr><br>

</div>



<h5 class="subsubsection">Flonums</h5>



   <p>A <dfn>flonum</dfn> represents a floating point number.  The translation is

indirect: a decimal floating point number from the text is converted by

<code>as</code> to a generic binary floating point number of more than

sufficient precision.  This generic floating point number is converted

to a particular computer's floating point format (or formats) by a

portion of <code>as</code> specialized to that computer.



   <p>A flonum is written by writing (in order)

     <ul>

<li>The digit <code>0</code>. 

(<code>0</code> is optional on the HPPA.)



     <li>A letter, to tell <code>as</code> the rest of the number is a flonum. 

<kbd>e</kbd> is recommended.  Case is not important.



     <p>On the H8/300, H8/500,

Hitachi SH,

and AMD 29K architectures, the letter must be

one of the letters <code>DFPRSX</code> (in upper or lower case).



     <p>On the ARC, the letter must be one of the letters <code>DFRS</code>

(in upper or lower case).



     <p>On the Intel 960 architecture, the letter must be

one of the letters <code>DFT</code> (in upper or lower case).



     <p>On the HPPA architecture, the letter must be <code>E</code> (upper case only).



     </p><li>An optional sign: either <code>+</code> or <code>-</code>.



     <li>An optional <dfn>integer part</dfn>: zero or more decimal digits.



     <li>An optional <dfn>fractional part</dfn>: <code>.</code> followed by zero

or more decimal digits.



     <li>An optional exponent, consisting of:



          <ul>

<li>An <code>E</code> or <code>e</code>. 

<li>Optional sign: either <code>+</code> or <code>-</code>. 

<li>One or more decimal digits. 

</ul>



   </ul>



   <p>At least one of the integer part or the fractional part must be

present.  The floating point number has the usual base-10 value.



   <p><code>as</code> does all processing using integers.  Flonums are computed

independently of any floating point hardware in the computer running

<code>as</code>.



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -