added example to abs(), corrected spelling errors

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@67455 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
irc-html 2002-01-09 23:59:53 +00:00
parent 0ffedbc2d7
commit a46296bfaa

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.65 $ -->
<!-- $Revision: 1.66 $ -->
<reference id="ref.math">
<title>Mathematical Functions</title>
<titleabbrev>Math</titleabbrev>
@ -145,6 +145,16 @@
otherwise it is <type>integer</type> (as <type>float</type> usually has a
bigger value range than <type>integer</type>).
</para>
<example>
<title><function>abs</function> example</title>
<programlisting role="php">
<![CDATA[
$abs = abs(-4.2); // $abs = 4.2; (double/float)
$abs2 = abs(5); // $abs2 = 5; (integer)
$abs3 = abs(-5); // $abs3 = 5; (integer)
]]>
</programlisting>
</example>
</refsect1>
</refentry>
@ -632,7 +642,7 @@ $ten = ceil(9.999); // $ten = 10.0;
</funcsynopsis>
<simpara>
Returns the next lowest integer value by rounding down
<parameter>value</parameter> if neccessary.
<parameter>value</parameter> if necessary.
The return value of <function>floor</function> is still of type
<type>float</type> because the value range of <type>float</type> is
usually bigger than that of <type>int</type>.