cvs: phpdoc /en/functions math.xml
| From: | Kenneth Schwartz | Date: | Wed, 09 Jan 2002 23:43:27 +0000 |
| Subject: | cvs: phpdoc /en/functions math.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969341018@lists.php.net to get a copy of this message | ||
irc-html Wed Jan 9 18:43:27 2002 EDT
Modified files:
/phpdoc/en/functions math.xml
Log:
added example for ceil()
Index: phpdoc/en/functions/math.xml
diff -u phpdoc/en/functions/math.xml:1.64 phpdoc/en/functions/math.xml:1.65
--- phpdoc/en/functions/math.xml:1.64 Tue Jan 1 19:44:14 2002
+++ phpdoc/en/functions/math.xml Wed Jan 9 18:43:26 2002
@@ -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 @@
<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>.