nlopess Thu Dec 18 05:02:11 2003 EDT
Modified files: /phpdoc/en/reference/bc/functions bccomp.xml bcmod.xml bcmul.xml Log: added example Index: phpdoc/en/reference/bc/functions/bccomp.xml diff -u phpdoc/en/reference/bc/functions/bccomp.xml:1.2 phpdoc/en/reference/bc/functions/bccomp.xml:1.3 --- phpdoc/en/reference/bc/functions/bccomp.xml:1.2 Wed Apr 17 02:36:33 2002 +++ phpdoc/en/reference/bc/functions/bccomp.xml Thu Dec 18 05:02:11 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 --> <refentry id="function.bccomp"> <refnamediv> @@ -26,6 +26,31 @@ is less than the <parameter>right_operand</parameter> the return value is -1. </para> + <para> + <example> + <title><function>bccomp</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bccomp('1', '2') . "\n"; + +echo bccomp('1.00001', '1', 3) . "\n"; +echo bccomp('1.00001', '1', 5); +?> +]]> + </programlisting> + <para> + The above example will output: + </para> + <screen> +<![CDATA[ +-1 +0 +1 +]]> + </screen> + </example> + </para> </refsect1> </refentry> Index: phpdoc/en/reference/bc/functions/bcmod.xml diff -u phpdoc/en/reference/bc/functions/bcmod.xml:1.2 phpdoc/en/reference/bc/functions/bcmod.xml:1.3 --- phpdoc/en/reference/bc/functions/bcmod.xml:1.2 Wed Apr 17 02:36:33 2002 +++ phpdoc/en/reference/bc/functions/bcmod.xml Thu Dec 18 05:02:11 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 --> <refentry id="function.bcmod"> <refnamediv> @@ -20,6 +20,28 @@ <parameter>modulus</parameter>. </para> <para> + <example> + <title><function>bcmod</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmod(4, 2) . "\n"; +echo bcmod(2, 4); +?> +]]> + </programlisting> + <para> + The above example will output: + </para> + <screen> +<![CDATA[ +0 +2 +]]> + </screen> + </example> + </para> + <para> See also <function>bcdiv</function>. </para> </refsect1> Index: phpdoc/en/reference/bc/functions/bcmul.xml diff -u phpdoc/en/reference/bc/functions/bcmul.xml:1.2 phpdoc/en/reference/bc/functions/bcmul.xml:1.3 --- phpdoc/en/reference/bc/functions/bcmul.xml:1.2 Wed Apr 17 02:36:33 2002 +++ phpdoc/en/reference/bc/functions/bcmul.xml Thu Dec 18 05:02:11 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 --> <refentry id="function.bcmul"> <refnamediv> @@ -21,6 +21,28 @@ after the decimal place in the result. </para> <para> + <example> + <title><function>bcmul</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmul(1.34747474747, 35, 3) . "\n"; +echo bcmul(2, 4); +?> +]]> + </programlisting> + <para> + The above example will output: + </para> + <screen> +<![CDATA[ +47.162 +8 +]]> + </screen> + </example> + </para> + <para> See also <function>bcdiv</function>. </para> </refsect1>