mazzanet Mon Jul 4 03:24:21 2005 EDT
Modified files:
/phpdoc/en/reference/bc/functions bcadd.xml bcdiv.xml bcmod.xml
bcmul.xml bcpow.xml bcscale.xml
bcsqrt.xml bcsub.xml
Log:
Fix examples - arguments are strings
http://cvs.php.net/diff.php/phpdoc/en/reference/bc/functions/bcadd.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/bc/functions/bcadd.xml
diff -u phpdoc/en/reference/bc/functions/bcadd.xml:1.4
phpdoc/en/reference/bc/functions/bcadd.xml:1.5
--- phpdoc/en/reference/bc/functions/bcadd.xml:1.4 Tue Aug 10 19:40:27 2004
+++ phpdoc/en/reference/bc/functions/bcadd.xml Mon Jul 4 03:24:19 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 -->
<refentry id="function.bcadd">
<refnamediv>
@@ -30,8 +30,8 @@
<![CDATA[
<?php
-$a = 1.234;
-$b = 5;
+$a = '1.234';
+$b = '5';
echo bcadd($a, $b); // 6
echo bcadd($a, $b, 4); // 6.2340
http://cvs.php.net/diff.php/phpdoc/en/reference/bc/functions/bcdiv.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/bc/functions/bcdiv.xml
diff -u phpdoc/en/reference/bc/functions/bcdiv.xml:1.5
phpdoc/en/reference/bc/functions/bcdiv.xml:1.6
--- phpdoc/en/reference/bc/functions/bcdiv.xml:1.5 Sat Nov 20 19:44:04 2004
+++ phpdoc/en/reference/bc/functions/bcdiv.xml Mon Jul 4 03:24:19 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 -->
<refentry id="function.bcdiv">
<refnamediv>
@@ -29,7 +29,7 @@
<![CDATA[
<?php
-echo bcdiv(105, 6.55957, 3); // 16.007
+echo bcdiv('105', '6.55957', 3); // 16.007
?>
]]>
http://cvs.php.net/diff.php/phpdoc/en/reference/bc/functions/bcmod.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/bc/functions/bcmod.xml
diff -u phpdoc/en/reference/bc/functions/bcmod.xml:1.4
phpdoc/en/reference/bc/functions/bcmod.xml:1.5
--- phpdoc/en/reference/bc/functions/bcmod.xml:1.4 Tue Aug 10 19:40:27 2004
+++ phpdoc/en/reference/bc/functions/bcmod.xml Mon Jul 4 03:24:19 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 -->
<refentry id="function.bcmod">
<refnamediv>
@@ -27,8 +27,8 @@
<programlisting role="php">
<![CDATA[
<?php
-echo bcmod(4, 2); // 0
-echo bcmod(2, 4); // 2
+echo bcmod('4', '2'); // 0
+echo bcmod('2', '4'); // 2
?>
]]>
</programlisting>
@@ -61,4 +61,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
\ No newline at end of file
+-->
http://cvs.php.net/diff.php/phpdoc/en/reference/bc/functions/bcmul.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/bc/functions/bcmul.xml
diff -u phpdoc/en/reference/bc/functions/bcmul.xml:1.4
phpdoc/en/reference/bc/functions/bcmul.xml:1.5
--- phpdoc/en/reference/bc/functions/bcmul.xml:1.4 Tue Aug 10 19:40:27 2004
+++ phpdoc/en/reference/bc/functions/bcmul.xml Mon Jul 4 03:24:19 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 -->
<refentry id="function.bcmul">
<refnamediv>
@@ -28,8 +28,8 @@
<programlisting role="php">
<![CDATA[
<?php
-echo bcmul(1.34747474747, 35, 3); // 47.162
-echo bcmul(2, 4); // 8
+echo bcmul('1.34747474747', '35', 3); // 47.162
+echo bcmul('2', '4'); // 8
?>
]]>
</programlisting>
http://cvs.php.net/diff.php/phpdoc/en/reference/bc/functions/bcpow.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/bc/functions/bcpow.xml
diff -u phpdoc/en/reference/bc/functions/bcpow.xml:1.8
phpdoc/en/reference/bc/functions/bcpow.xml:1.9
--- phpdoc/en/reference/bc/functions/bcpow.xml:1.8 Tue Aug 10 19:40:27 2004
+++ phpdoc/en/reference/bc/functions/bcpow.xml Mon Jul 4 03:24:19 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 -->
<refentry id="function.bcpow">
<refnamediv>
@@ -31,7 +31,7 @@
<![CDATA[
<?php
-echo bcpow(4.2, 3, 2); // 74.08
+echo bcpow('4.2', '3', 2); // 74.08
?>
]]>
http://cvs.php.net/diff.php/phpdoc/en/reference/bc/functions/bcscale.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/bc/functions/bcscale.xml
diff -u phpdoc/en/reference/bc/functions/bcscale.xml:1.6
phpdoc/en/reference/bc/functions/bcscale.xml:1.7
--- phpdoc/en/reference/bc/functions/bcscale.xml:1.6 Tue Aug 10 19:43:37 2004
+++ phpdoc/en/reference/bc/functions/bcscale.xml Mon Jul 4 03:24:19 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 -->
<refentry id="function.bcscale">
<refnamediv>
@@ -30,10 +30,10 @@
// default scale : 3
bcscale(3);
-echo bcdiv(105, 6.55957); // 16.007
+echo bcdiv('105', '6.55957'); // 16.007
// this is the same without bcscale()
-echo bcdiv(105, 6.55957, 3); // 16.007
+echo bcdiv('105', '6.55957', 3); // 16.007
?>
]]>
http://cvs.php.net/diff.php/phpdoc/en/reference/bc/functions/bcsqrt.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/bc/functions/bcsqrt.xml
diff -u phpdoc/en/reference/bc/functions/bcsqrt.xml:1.4
phpdoc/en/reference/bc/functions/bcsqrt.xml:1.5
--- phpdoc/en/reference/bc/functions/bcsqrt.xml:1.4 Tue Aug 10 19:40:27 2004
+++ phpdoc/en/reference/bc/functions/bcsqrt.xml Mon Jul 4 03:24:19 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 -->
<refentry id="function.bcsqrt">
<refnamediv>
@@ -29,7 +29,7 @@
<![CDATA[
<?php
-echo bcsqrt(2, 3); // 1.414
+echo bcsqrt('2', 3); // 1.414
?>
]]>
http://cvs.php.net/diff.php/phpdoc/en/reference/bc/functions/bcsub.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/bc/functions/bcsub.xml
diff -u phpdoc/en/reference/bc/functions/bcsub.xml:1.4
phpdoc/en/reference/bc/functions/bcsub.xml:1.5
--- phpdoc/en/reference/bc/functions/bcsub.xml:1.4 Tue Aug 10 19:40:27 2004
+++ phpdoc/en/reference/bc/functions/bcsub.xml Mon Jul 4 03:24:19 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 -->
<refentry id="function.bcsub">
<refnamediv>
@@ -32,8 +32,8 @@
<![CDATA[
<?php
-$a = 1.234;
-$b = 5;
+$a = '1.234';
+$b = '5';
echo bcsub($a, $b); // -3
echo bcsub($a, $b, 4); // -3.7660