cvs: phpdoc /en/reference/math constants.xml /en/reference/math/functions round.xml

From: Date: Fri, 16 Jan 2009 15:37:00 +0000
Subject: cvs: phpdoc /en/reference/math constants.xml /en/reference/math/functions round.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3045@lists.php.net to get a copy of this message
vrana Fri Jan 16 15:37:00 2009 UTC Modified files: /phpdoc/en/reference/math constants.xml /phpdoc/en/reference/math/functions round.xml Log: round() mode parameter http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/constants.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/math/constants.xml diff -u phpdoc/en/reference/math/constants.xml:1.5 phpdoc/en/reference/math/constants.xml:1.6 --- phpdoc/en/reference/math/constants.xml:1.5 Wed Dec 26 13:06:54 2007 +++ phpdoc/en/reference/math/constants.xml Fri Jan 16 15:36:59 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <appendix xml:id="math.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants.core; @@ -100,6 +100,26 @@ <entry>0.57721566490153286061</entry> <entry>Euler constant [5.2.0]</entry> </row> + <row> + <entry>PHP_ROUND_HALF_UP</entry> + <entry>1</entry> + <entry>Round halves up [5.3.0]</entry> + </row> + <row> + <entry>PHP_ROUND_HALF_DOWN</entry> + <entry>2</entry> + <entry>Round halves down [5.3.0]</entry> + </row> + <row> + <entry>PHP_ROUND_HALF_EVEN</entry> + <entry>3</entry> + <entry>Round halves to even numbers [5.3.0]</entry> + </row> + <row> + <entry>PHP_ROUND_HALF_ODD</entry> + <entry>4</entry> + <entry>Round halves to odd numbers [5.3.0]</entry> + </row> </tbody> </tgroup> </table> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/functions/round.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/math/functions/round.xml diff -u phpdoc/en/reference/math/functions/round.xml:1.13 phpdoc/en/reference/math/functions/round.xml:1.14 --- phpdoc/en/reference/math/functions/round.xml:1.13 Wed Jun 20 22:24:51 2007 +++ phpdoc/en/reference/math/functions/round.xml Fri Jan 16 15:37:00 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <refentry xml:id="function.round" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>round</refname> @@ -11,6 +11,7 @@ <type>float</type><methodname>round</methodname> <methodparam><type>float</type><parameter>val</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>precision</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>PHP_ROUND_HALF_UP</initializer></methodparam> </methodsynopsis> <para> Returns the rounded value of <parameter>val</parameter> to @@ -72,6 +73,17 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term><parameter>mode</parameter></term> + <listitem> + <para> + One of <constant>PHP_ROUND_HALF_UP</constant>, + <constant>PHP_ROUND_HALF_DOWN</constant>, + <constant>PHP_ROUND_HALF_EVEN</constant>, or + <constant>PHP_ROUND_HALF_ODD</constant>. + </para> + </listitem> + </varlistentry> </variablelist> </para> </refsect1> @@ -103,6 +115,29 @@ </example> </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + The <parameter>mode</parameter> parameter was introduced. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para>

« previous php.doc.cvs (#3045) next »