mirror of
https://github.com/php/doc-de.git
synced 2026-04-24 15:38:14 +02:00
f1b3e25fb9
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@177153 c90b9560-bf6c-de11-be94-00142212c4b1
63 lines
1.8 KiB
XML
63 lines
1.8 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.3 $ -->
|
|
<!-- splitted from ./de/functions/math.xml, last change in rev 1.8 -->
|
|
<!-- last change to 'round' in en/ tree in rev 1.2 -->
|
|
<refentry id="function.round">
|
|
<refnamediv>
|
|
<refname>round</refname>
|
|
<refpurpose>Runden eines Wertes</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Beschreibung</title>
|
|
<methodsynopsis>
|
|
<type>double</type><methodname>round</methodname>
|
|
<methodparam><type>double</type><parameter>val</parameter></methodparam>
|
|
<methodparam choice="opt"><type></type><parameter>int precision</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
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>
|
|
<note>
|
|
<simpara>
|
|
Der Parameter <parameter>precision</parameter> ist ab PHP 4 verfügbar.
|
|
</simpara>
|
|
</note>
|
|
<para>
|
|
Siehe auch <function>ceil</function> und
|
|
<function>floor</function>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|