mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Change ID: types.double -> types.float
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@54918 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6d26b31e28
commit
d88db0235d
1 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
<!-- $Revision: 1.43 $ -->
|
||||
<!-- $Revision: 1.44 $ -->
|
||||
<chapter id="language.types">
|
||||
<title>Types</title>
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="language.types.double">floating-point number (float)</link>
|
||||
<link linkend="language.types.float">floating-point number (float)</link>
|
||||
</simpara>
|
||||
</listitem>
|
||||
|
||||
|
@ -202,7 +202,7 @@ if ($show_separators)
|
|||
> 0 (zero) </simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>the <link linkend="language.types.double">float</link>
|
||||
<simpara>the <link linkend="language.types.float">float</link>
|
||||
0.0 (zero) </simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
|
@ -254,7 +254,7 @@ if ($show_separators)
|
|||
<para>
|
||||
See also:
|
||||
<link linkend="ref.gmp">Arbitrary precision integers</link> and
|
||||
<link linkend="language.types.double">Floating point numbers</link>
|
||||
<link linkend="language.types.float">Floating point numbers</link>
|
||||
</para>
|
||||
|
||||
<sect2 id="language.types.integer.syntax">
|
||||
|
@ -375,7 +375,7 @@ var_dump($large_number);
|
|||
</sect3>
|
||||
|
||||
<sect3 id="language.types.integer.casting.from-float">
|
||||
<title>From <link linkend="language.types.double">floating point numbers</link></title>
|
||||
<title>From <link linkend="language.types.float">floating point numbers</link></title>
|
||||
<simpara>
|
||||
When converting from float to integer, the number will
|
||||
be rounded <emphasis>towards zero</emphasis>.
|
||||
|
@ -441,7 +441,7 @@ echo (int) ( (0.1+0.7) * 10 ); // echoes 7!
|
|||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="language.types.double">
|
||||
<sect1 id="language.types.float">
|
||||
<title>Floating point numbers</title>
|
||||
<para>
|
||||
Floating point numbers (AKA "floats", "doubles" or "real numbers") can be
|
||||
|
@ -1910,7 +1910,7 @@ $foo = ( int ) $bar;
|
|||
</listitem>
|
||||
<!-- don't exist yet
|
||||
<listitem>
|
||||
<simpara><link linkend="language.types.double.casting">Converting to
|
||||
<simpara><link linkend="language.types.float.casting">Converting to
|
||||
float</link></simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
|
@ -1994,5 +1994,5 @@ sgml-exposed-tags:nil
|
|||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim: ts=1 sw=1 et syntax=sgml
|
||||
vi: et:ts=1:sw=1:textwidth=78:syntax=sgml
|
||||
-->
|
||||
|
|
Loading…
Reference in a new issue