added example for ceil()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@67445 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
irc-html 2002-01-09 23:43:26 +00:00
parent bfb15a2547
commit 9820060af2

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.64 $ -->
<!-- $Revision: 1.65 $ -->
<reference id="ref.math">
<title>Mathematical Functions</title>
<titleabbrev>Math</titleabbrev>
@ -413,6 +413,15 @@ $binary = base_convert ($hexadecimal, 16, 2);
<type>float</type> as the value range of <type>float</type> is
usually bigger than that of <type>int</type>.
</simpara>
<example>
<title><function>ceil</function> examples</title>
<programlisting role="php">
<![CDATA[
$five = ceil(4.3); // $five = 5.0;
$ten = ceil(9.999); // $ten = 10.0;
]]>
</programlisting>
</example>
<simpara>
See also <function>floor</function> and
<function>round</function>.