svn: /phpdoc/de/trunk/reference/math/functions/ round.xml
| From: | Nikita Popov | Date: | Tue, 08 May 2012 11:36:18 +0000 |
| Subject: | svn: /phpdoc/de/trunk/reference/math/functions/ round.xml | ||
| Groups: | php.doc.de | ||
| Request: | Send a blank email to doc-de+get-4246@lists.php.net to get a copy of this message | ||
nikic Tue, 08 May 2012 11:36:18 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=325595
Log:
Sync round() docs
Changed paths:
U phpdoc/de/trunk/reference/math/functions/round.xml
Modified: phpdoc/de/trunk/reference/math/functions/round.xml
===================================================================
--- phpdoc/de/trunk/reference/math/functions/round.xml 2012-05-08 11:35:23 UTC (rev 325594)
+++ phpdoc/de/trunk/reference/math/functions/round.xml 2012-05-08 11:36:18 UTC (rev 325595)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 -->
-<!-- EN-Revision: 288721 Maintainer: hholzgra Status: ready -->
+<!-- EN-Revision: 306562 Maintainer: hholzgra Status: ready -->
<refentry xml:id="function.round" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>round</refname>
@@ -46,14 +46,6 @@
</simpara>
</note>
</para>
- <para>
- <note>
- <simpara>
- Die Angabe der gewünschten Stellenzahl <parameter>precision</parameter>
- ist seit PHP 4 möglich.
- </simpara>
- </note>
- </para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
@@ -63,7 +55,7 @@
<term><parameter>val</parameter></term>
<listitem>
<para>
- Der zu rundende Wert
+ Der zu rundende Wert.
</para>
</listitem>
</varlistentry>
@@ -71,7 +63,7 @@
<term><parameter>precision</parameter></term>
<listitem>
<para>
- Die optionale gewünschte Anzahl Nachkommastellen, Vorgabewert ist 0
+ Auf wie viele Nachkommastellen gerundet werden soll.
</para>
</listitem>
</varlistentry>
@@ -92,7 +84,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Der gerundete Wert
+ Der gerundete Wert.
</para>
</refsect1>
<refsect1 role="examples">
@@ -116,6 +108,26 @@
</programlisting>
</example>
</para>
+ <para>
+ <example>
+
<title><function><parameter>mode</parameter></function>-Beispiele</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+echo round(9.5, 0, PHP_ROUND_HALF_UP); // 10
+echo round(9.5, 0, PHP_ROUND_HALF_DOWN); // 9
+echo round(9.5, 0, PHP_ROUND_HALF_EVEN); // 10
+echo round(9.5, 0, PHP_ROUND_HALF_ODD); // 9
+
+echo round(8.5, 0, PHP_ROUND_HALF_UP); // 9
+echo round(8.5, 0, PHP_ROUND_HALF_DOWN); // 8
+echo round(8.5, 0, PHP_ROUND_HALF_EVEN); // 8
+echo round(8.5, 0, PHP_ROUND_HALF_ODD); // 9
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
@@ -135,6 +147,13 @@
Der Parameter <parameter>mode</parameter> wurde hinzugefügt.
</entry>
</row>
+ <row>
+ <entry>5.2.7</entry>
+ <entry>
+ Die interne Funktionsweise von <function>round</function> wurde angepasst,
+ um dem C99 Standard zu entsprechen.
+ </entry>
+ </row>
</tbody>
</tgroup>
</informaltable>