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:
Ron Chmara 2000-12-10 03:31:50 +00:00
parent 6dc9c22fb1
commit cb63f13595

View file

@ -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