Date: 06/27/00
- Next message: Stefan Livieratos: "[PHP-DOC] cvs: phpdoc /de/chapters config.xml /en/chapters config.xml /it/chapters config.xml /ja/chapters config.xml"
- Previous message: Martin Edelius: "Re: [PHP-DOC] Re: [PHPDOC] first line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
sli Tue Jun 27 10:00:29 2000 EDT
Modified files:
/phpdoc/de/functions math.xml
/phpdoc/en/functions math.xml
/phpdoc/it/functions math.xml
/phpdoc/ja/functions math.xml
Log:
Fixed Bug #5246: round() has a second optional argument
Index: phpdoc/de/functions/math.xml
diff -u phpdoc/de/functions/math.xml:1.10 phpdoc/de/functions/math.xml:1.11
--- phpdoc/de/functions/math.xml:1.10 Sat Jun 24 00:38:42 2000
+++ phpdoc/de/functions/math.xml Tue Jun 27 10:00:29 2000
@@ -991,16 +991,22 @@
<funcprototype>
<funcdef>double <function>round</function></funcdef>
<paramdef>double <parameter>val</parameter></paramdef>
+ <paramdef>
+ <parameter><optional>int precision</optional></parameter>
+ </paramdef>
</funcprototype>
</funcsynopsis>
<para>
- Diese Funktion rundent den Eingabewert <parameter>val</parameter>
- zur nächsten ganzen Zahl hin auf oder ab.
+ Diese Funktion rundet den Eingabewert <parameter>val</parameter>
+ auf <parameter>precision</parameter> Stellen nach dem Komma
+ auf oder ab.
<informalexample>
<programlisting role="php">
$foo = round (3.4); // $foo == 3.0
$foo = round (3.5); // $foo == 4.0
$foo = round (3.6); // $foo == 4.0
+
+$foo = round (1.95583,2); // $foo == 1.96
</programlisting>
</informalexample>
</para>
Index: phpdoc/en/functions/math.xml
diff -u phpdoc/en/functions/math.xml:1.6 phpdoc/en/functions/math.xml:1.7
--- phpdoc/en/functions/math.xml:1.6 Sat Jun 24 00:38:43 2000
+++ phpdoc/en/functions/math.xml Tue Jun 27 10:00:29 2000
@@ -968,17 +968,23 @@
<funcprototype>
<funcdef>double <function>round</function></funcdef>
<paramdef>double <parameter>val</parameter></paramdef>
+ <paramdef>
+ <parameter><optional>int precision</optional></parameter>
+ </paramdef>
</funcprototype>
</funcsynopsis>
<para>
- Returns the rounded value of <parameter>val</parameter>.
+ Returns the rounded value of <parameter>val</parameter> to
+ specified precision.
<informalexample>
<programlisting>
-$foo = round( 3.4 ); // $foo == 3.0
-$foo = round( 3.5 ); // $foo == 4.0
-$foo = round( 3.6 ); // $foo == 4.0
+$foo = round( 3.4 ); // $foo == 3.0
+$foo = round( 3.5 ); // $foo == 4.0
+$foo = round( 3.6 ); // $foo == 4.0
+
+$foo = round( 1.95583 , 2 ); // $foo == 1.96
</programlisting>
</informalexample></para>
Index: phpdoc/it/functions/math.xml
diff -u phpdoc/it/functions/math.xml:1.3 phpdoc/it/functions/math.xml:1.4
--- phpdoc/it/functions/math.xml:1.3 Sat Jun 24 00:38:44 2000
+++ phpdoc/it/functions/math.xml Tue Jun 27 10:00:29 2000
@@ -858,17 +858,23 @@
<funcprototype>
<funcdef>double <function>round</function></funcdef>
<paramdef>double <parameter>val</parameter></paramdef>
+ <paramdef>
+ <parameter><optional>int precision</optional></parameter>
+ </paramdef>
</funcprototype>
</funcsynopsis>
<para>
- Returns the rounded value of <parameter>val</parameter>.
+ Returns the rounded value of <parameter>val</parameter> to
+ specified precision.
<informalexample>
<programlisting>
$foo = round( 3.4 ); // $foo == 3.0
$foo = round( 3.5 ); // $foo == 4.0
$foo = round( 3.6 ); // $foo == 4.0
+
+$foo = round( 1.95583 , 2 ); // $foo == 1.96
</programlisting>
</informalexample></para>
Index: phpdoc/ja/functions/math.xml
diff -u phpdoc/ja/functions/math.xml:1.4 phpdoc/ja/functions/math.xml:1.5
--- phpdoc/ja/functions/math.xml:1.4 Sat Jun 24 00:38:44 2000
+++ phpdoc/ja/functions/math.xml Tue Jun 27 10:00:29 2000
@@ -861,6 +861,9 @@
<funcprototype>
<funcdef>double <function>round</function></funcdef>
<paramdef>double <parameter>val</parameter></paramdef>
+ <paramdef>
+ <parameter><optional>int precision</optional></parameter>
+ </paramdef>
</funcprototype>
</funcsynopsis>
@@ -872,6 +875,8 @@
$foo = round( 3.4 ); // $foo == 3.0
$foo = round( 3.5 ); // $foo == 4.0
$foo = round( 3.6 ); // $foo == 4.0
+
+$foo = round( 1.95583 , 2 ); // $foo == 1.96
</programlisting>
</informalexample>
</para>
- Next message: Stefan Livieratos: "[PHP-DOC] cvs: phpdoc /de/chapters config.xml /en/chapters config.xml /it/chapters config.xml /ja/chapters config.xml"
- Previous message: Martin Edelius: "Re: [PHP-DOC] Re: [PHPDOC] first line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

