cvs: phpdoc /en/functions math.xml

From: Date: Sun, 10 Dec 2000 03:31:50 +0000
Subject: cvs: phpdoc /en/functions math.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969333184@lists.php.net to get a copy of this message
ronabop Sat Dec 9 19:31:50 2000 EDT Modified files: /phpdoc/en/functions math.xml Log: added example to ciel() Index: phpdoc/en/functions/math.xml diff -u phpdoc/en/functions/math.xml:1.20 phpdoc/en/functions/math.xml:1.21 --- phpdoc/en/functions/math.xml:1.20 Sun Nov 26 17:25:24 2000 +++ phpdoc/en/functions/math.xml Sat Dec 9 19:31:50 2000 @@ -318,11 +318,17 @@ <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

« previous php.doc (#969333184) next »