mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed incorrect examples.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@84364 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
feed08b467
commit
c79b43a897
1 changed files with 7 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.round">
|
||||
<refnamediv>
|
||||
|
@ -32,14 +32,12 @@
|
|||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
$foo = round(3.4); // $foo == 3.0
|
||||
$foo = round(3.5); // $foo == 4.0
|
||||
$foo = round(3.6); // $foo == 4.0
|
||||
$foo = round(3.6, 0); // equivalent with above
|
||||
|
||||
$foo = round(1.95583, 2); // $foo == 1.96
|
||||
|
||||
$foo = round(1241757, -3); // $foo == 1242000
|
||||
echo round(3.4); // 3
|
||||
echo round(3.5); // 4
|
||||
echo round(3.6); // 4
|
||||
echo round(3.6, 0); // 4
|
||||
echo round(1.95583, 2); // 1.96
|
||||
echo round(1241757, -3); // 1242000
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
|
|
Loading…
Reference in a new issue