colder Sun Oct 15 23:24:12 2006 UTC
Modified files: /phpdoc/en/reference/math/functions floor.xml ceil.xml Log: An example with negative input may clarify things a bit http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/functions/floor.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/math/functions/floor.xml diff -u phpdoc/en/reference/math/functions/floor.xml:1.5 phpdoc/en/reference/math/functions/floor.xml:1.6 --- phpdoc/en/reference/math/functions/floor.xml:1.5 Mon Jun 16 18:31:33 2003 +++ phpdoc/en/reference/math/functions/floor.xml Sun Oct 15 23:24:12 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/math.xml, last change in rev 1.2 --> <refentry id="function.floor"> <refnamediv> @@ -27,6 +27,7 @@ <?php echo floor(4.3); // 4 echo floor(9.999); // 9 +echo floor(-3.14); // -4 ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/functions/ceil.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/math/functions/ceil.xml diff -u phpdoc/en/reference/math/functions/ceil.xml:1.5 phpdoc/en/reference/math/functions/ceil.xml:1.6 --- phpdoc/en/reference/math/functions/ceil.xml:1.5 Mon Jun 16 18:31:33 2003 +++ phpdoc/en/reference/math/functions/ceil.xml Sun Oct 15 23:24:12 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/math.xml, last change in rev 1.2 --> <refentry id="function.ceil"> <refnamediv> @@ -27,6 +27,7 @@ <?php echo ceil(4.3); // 5 echo ceil(9.999); // 10 +echo ceil(-3.14); // -3 ?> ]]> </programlisting>