mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
bfb15a2547
commit
9820060af2
1 changed files with 10 additions and 1 deletions
|
@ -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>.
|
||||
|
|
Loading…
Reference in a new issue