mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
added example to ciel()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@37485 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6dc9c22fb1
commit
cb63f13595
1 changed files with 8 additions and 2 deletions
|
@ -318,11 +318,17 @@ $binary = base_convert ($hexadecimal, 16, 2);
|
|||
<paramdef>float <parameter>number</parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<simpara>
|
||||
<para>
|
||||
Returns the next highest integer value from
|
||||
<parameter>number</parameter>. Using <function>ceil</function>
|
||||
on integers is absolutely a waste of time.
|
||||
</simpara>
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
$x = ceil(4.25);
|
||||
// which would make $x=5
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
<simpara>
|
||||
NOTE: PHP/FI 2's <function>ceil</function> returned a
|
||||
float. Use: <literal>$new = (double)ceil($number);</literal> to
|
||||
|
|
Loading…
Reference in a new issue