cvs: phpdoc-es /reference/bc/functions bcadd.xml bccomp.xml bcdiv.xml bcmod.xml bcmul.xml bcpow.xml bcscale.xml bcsqrt.xml bcsub.xml
| From: | Rafael Martinez | Date: | Wed, 04 Aug 2004 14:15:54 +0000 |
| Subject: | cvs: phpdoc-es /reference/bc/functions bcadd.xml bccomp.xml bcdiv.xml bcmod.xml bcmul.xml bcpow.xml bcscale.xml bcsqrt.xml bcsub.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-666@lists.php.net to get a copy of this message | ||
rafael Wed Aug 4 10:15:54 2004 EDT
Modified files:
/phpdoc-es/reference/bc/functions bcadd.xml bccomp.xml bcsqrt.xml
bcmul.xml bcscale.xml bcmod.xml
bcpow.xml bcdiv.xml bcsub.xml
Log:
Sync con version inglesa
http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcadd.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcadd.xml diff -u phpdoc-es/reference/bc/functions/bcadd.xml:1.2 phpdoc-es/reference/bc/functions/bcadd.xml:1.3 --- phpdoc-es/reference/bc/functions/bcadd.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcadd.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bcadd"> <refnamediv> @@ -22,6 +22,24 @@ en una cadena de texto. El parámetro opcional <parameter>escala</parameter> se usa para fijar el número de dígitos tras el punto decimal que aparecerán en el resultado.</para> + <para> + <example> + <title>Ejemplo <function>bcadd</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$a = 1.234; +$b = 5; + +echo bcadd($a, $b); // 6 +echo bcadd($a, $b, 4); // 6.2340 + +?> +]]> + </programlisting> + </example> + </para> <para> Vea también <function>bcsub</function>.</para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bccomp.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bccomp.xml diff -u phpdoc-es/reference/bc/functions/bccomp.xml:1.2 phpdoc-es/reference/bc/functions/bccomp.xml:1.3 --- phpdoc-es/reference/bc/functions/bccomp.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bccomp.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bccomp"> <refnamediv> @@ -26,6 +26,31 @@ es mayor que el <parameter>operando der</parameter> el valor devuelto es +1 y si el <parameter>operando izq</parameter> es menor que el <parameter>operando der</parameter> el valor devuelto es -1.</para> + <para> + <example> + <title>Ejemplo <function>bccomp</function></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> + Resultado de este ejemplo: + </para> + <screen> +<![CDATA[ +-1 +0 +1 +]]> + </screen> + </example> + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcsqrt.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcsqrt.xml diff -u phpdoc-es/reference/bc/functions/bcsqrt.xml:1.2 phpdoc-es/reference/bc/functions/bcsqrt.xml:1.3 --- phpdoc-es/reference/bc/functions/bcsqrt.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcsqrt.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bcsqrt"> <refnamediv> @@ -19,6 +19,21 @@ opcional <parameter>escala</parameter> fija el número de dígitos tras el punto decimal del resultado.</para> <para> + <example> + <title>Ejemplo <function>bcsqrt</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcsqrt(2, 3); // 1.414 + +?> +]]> + </programlisting> + </example> + </para> + <para> + Ver también <function>bcpow</function>.</para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcmul.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcmul.xml diff -u phpdoc-es/reference/bc/functions/bcmul.xml:1.2 phpdoc-es/reference/bc/functions/bcmul.xml:1.3 --- phpdoc-es/reference/bc/functions/bcmul.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcmul.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> + <refentry id="function.bcmul"> <refnamediv> <refname>bcmul</refname> @@ -21,6 +22,29 @@ punto decimal del resultado.</para> <para> + <example> + <title>Ejemplo <function>bcmul</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmul(1.34747474747, 35, 3) . "\n"; +echo bcmul(2, 4); +?> +]]> + </programlisting> + <para> + Resultado de este ejemplo: + </para> + <screen> +<![CDATA[ +47.162 +8 +]]> + </screen> + </example> + </para> + <para> + Ver también <function>bcdiv</function>.</para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcscale.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcscale.xml diff -u phpdoc-es/reference/bc/functions/bcscale.xml:1.2 phpdoc-es/reference/bc/functions/bcscale.xml:1.3 --- phpdoc-es/reference/bc/functions/bcscale.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcscale.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: rafael Status: ready --> <refentry id="function.bcscale"> <refnamediv> @@ -12,12 +12,34 @@ <refsect1> <title>Descripción</title> <methodsynopsis> - <type>string</type><methodname>bcscale</methodname> + <type>bool</type><methodname>bcscale</methodname> <methodparam><type>int</type><parameter>escala</parameter></methodparam> </methodsynopsis> <para> Esta función fija el parámetro de escala por defecto para las subsiguientes funciones - matemáticas bc que no especifican dicho parámetro explícitamente.</para> + matemáticas bc que no especifican dicho parámetro explícitamente. &return.success; + </para> + <para> + <example> + <title>Ejemplo <function>bcscale</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// default scale : 3 +bcscale(3); +echo bcdiv(105, 6.55957); // 16.007 + +// this is the same without bcscale() +echo bcdiv(105, 6.55957, 3); // 16.007 + +?> +]]> + </programlisting> + </example> + + +</para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcmod.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcmod.xml diff -u phpdoc-es/reference/bc/functions/bcmod.xml:1.2 phpdoc-es/reference/bc/functions/bcmod.xml:1.3 --- phpdoc-es/reference/bc/functions/bcmod.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcmod.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bcmod"> <refnamediv> @@ -18,6 +18,29 @@ Obtiene el módulo del <parameter>operando izq</parameter> usando <parameter>modulo</parameter>.</para> <para> + <example> + <title>Ejemplo <function>bcmod</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmod(4, 2) . "\n"; +echo bcmod(2, 4); +?> +]]> + </programlisting> + <para> + Resultado de este ejemplo: + </para> + <screen> +<![CDATA[ +0 +2 +]]> + </screen> + </example> + </para> + <para> + Ver también <function>bcdiv</function>.</para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcpow.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/bc/functions/bcpow.xml diff -u phpdoc-es/reference/bc/functions/bcpow.xml:1.3 phpdoc-es/reference/bc/functions/bcpow.xml:1.4 --- phpdoc-es/reference/bc/functions/bcpow.xml:1.3 Tue May 6 10:01:36 2003 +++ phpdoc-es/reference/bc/functions/bcpow.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.5 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: rafael Status: ready --> <refentry id="function.bcpow"> <refnamediv> @@ -12,7 +12,7 @@ <methodsynopsis> <type>string</type><methodname>bcpow</methodname> <methodparam><type>string</type><parameter>x</parameter></methodparam> - <methodparam><type>int</type><parameter>y</parameter></methodparam> + <methodparam><type>string</type><parameter>y</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>escala</parameter></methodparam> </methodsynopsis> @@ -23,6 +23,21 @@ número de dígitos tras el punto decimal del resultado.</para> <para> + <example> + <title>Ejemplo <function>bcpow</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcpow(4.2, 3, 2); // 74.08 + +?> +]]> + </programlisting> + </example> + </para> + <para> + Ver también <function>bcpowmod</function> y <function>bcsqrt</function></para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcdiv.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcdiv.xml diff -u phpdoc-es/reference/bc/functions/bcdiv.xml:1.2 phpdoc-es/reference/bc/functions/bcdiv.xml:1.3 --- phpdoc-es/reference/bc/functions/bcdiv.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcdiv.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bcdiv"> <refnamediv> @@ -23,6 +23,21 @@ punto decimal a usar en el resultado.</para> <para> + <example> + <title>Ejemplo <function>bcdiv</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcdiv(105, 6.55957, 3); // 16.007 + +?> +]]> + </programlisting> + </example> + </para> + <para> + Ver también <function>bcmul</function>.</para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcsub.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcsub.xml diff -u phpdoc-es/reference/bc/functions/bcsub.xml:1.2 phpdoc-es/reference/bc/functions/bcsub.xml:1.3 --- phpdoc-es/reference/bc/functions/bcsub.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcsub.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bcsub"> <refnamediv> @@ -23,6 +23,25 @@ se utiliza para fijar el número de dígitos tras el punto decimal del resultado.</para> <para> + <example> + <title>Ejemplo <function>bcsub</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$a = 1.234; +$b = 5; + +echo bcsub($a, $b); // -3 +echo bcsub($a, $b, 4); // -3.7660 + +?> +]]> + </programlisting> + </example> + </para> + <para> + Ver también <function>bcadd</function>.</para> </refsect1> </refentry>
http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcadd.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcadd.xml diff -u phpdoc-es/reference/bc/functions/bcadd.xml:1.2 phpdoc-es/reference/bc/functions/bcadd.xml:1.3 --- phpdoc-es/reference/bc/functions/bcadd.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcadd.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bcadd"> <refnamediv> @@ -22,6 +22,24 @@ en una cadena de texto. El parámetro opcional <parameter>escala</parameter> se usa para fijar el número de dígitos tras el punto decimal que aparecerán en el resultado.</para> + <para> + <example> + <title>Ejemplo <function>bcadd</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$a = 1.234; +$b = 5; + +echo bcadd($a, $b); // 6 +echo bcadd($a, $b, 4); // 6.2340 + +?> +]]> + </programlisting> + </example> + </para> <para> Vea también <function>bcsub</function>.</para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bccomp.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bccomp.xml diff -u phpdoc-es/reference/bc/functions/bccomp.xml:1.2 phpdoc-es/reference/bc/functions/bccomp.xml:1.3 --- phpdoc-es/reference/bc/functions/bccomp.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bccomp.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bccomp"> <refnamediv> @@ -26,6 +26,31 @@ es mayor que el <parameter>operando der</parameter> el valor devuelto es +1 y si el <parameter>operando izq</parameter> es menor que el <parameter>operando der</parameter> el valor devuelto es -1.</para> + <para> + <example> + <title>Ejemplo <function>bccomp</function></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> + Resultado de este ejemplo: + </para> + <screen> +<![CDATA[ +-1 +0 +1 +]]> + </screen> + </example> + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcsqrt.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcsqrt.xml diff -u phpdoc-es/reference/bc/functions/bcsqrt.xml:1.2 phpdoc-es/reference/bc/functions/bcsqrt.xml:1.3 --- phpdoc-es/reference/bc/functions/bcsqrt.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcsqrt.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bcsqrt"> <refnamediv> @@ -19,6 +19,21 @@ opcional <parameter>escala</parameter> fija el número de dígitos tras el punto decimal del resultado.</para> <para> + <example> + <title>Ejemplo <function>bcsqrt</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcsqrt(2, 3); // 1.414 + +?> +]]> + </programlisting> + </example> + </para> + <para> + Ver también <function>bcpow</function>.</para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcmul.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcmul.xml diff -u phpdoc-es/reference/bc/functions/bcmul.xml:1.2 phpdoc-es/reference/bc/functions/bcmul.xml:1.3 --- phpdoc-es/reference/bc/functions/bcmul.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcmul.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> + <refentry id="function.bcmul"> <refnamediv> <refname>bcmul</refname> @@ -21,6 +22,29 @@ punto decimal del resultado.</para> <para> + <example> + <title>Ejemplo <function>bcmul</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmul(1.34747474747, 35, 3) . "\n"; +echo bcmul(2, 4); +?> +]]> + </programlisting> + <para> + Resultado de este ejemplo: + </para> + <screen> +<![CDATA[ +47.162 +8 +]]> + </screen> + </example> + </para> + <para> + Ver también <function>bcdiv</function>.</para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcscale.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcscale.xml diff -u phpdoc-es/reference/bc/functions/bcscale.xml:1.2 phpdoc-es/reference/bc/functions/bcscale.xml:1.3 --- phpdoc-es/reference/bc/functions/bcscale.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcscale.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: rafael Status: ready --> <refentry id="function.bcscale"> <refnamediv> @@ -12,12 +12,34 @@ <refsect1> <title>Descripción</title> <methodsynopsis> - <type>string</type><methodname>bcscale</methodname> + <type>bool</type><methodname>bcscale</methodname> <methodparam><type>int</type><parameter>escala</parameter></methodparam> </methodsynopsis> <para> Esta función fija el parámetro de escala por defecto para las subsiguientes funciones - matemáticas bc que no especifican dicho parámetro explícitamente.</para> + matemáticas bc que no especifican dicho parámetro explícitamente. &return.success; + </para> + <para> + <example> + <title>Ejemplo <function>bcscale</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// default scale : 3 +bcscale(3); +echo bcdiv(105, 6.55957); // 16.007 + +// this is the same without bcscale() +echo bcdiv(105, 6.55957, 3); // 16.007 + +?> +]]> + </programlisting> + </example> + + +</para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcmod.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcmod.xml diff -u phpdoc-es/reference/bc/functions/bcmod.xml:1.2 phpdoc-es/reference/bc/functions/bcmod.xml:1.3 --- phpdoc-es/reference/bc/functions/bcmod.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcmod.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bcmod"> <refnamediv> @@ -18,6 +18,29 @@ Obtiene el módulo del <parameter>operando izq</parameter> usando <parameter>modulo</parameter>.</para> <para> + <example> + <title>Ejemplo <function>bcmod</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmod(4, 2) . "\n"; +echo bcmod(2, 4); +?> +]]> + </programlisting> + <para> + Resultado de este ejemplo: + </para> + <screen> +<![CDATA[ +0 +2 +]]> + </screen> + </example> + </para> + <para> + Ver también <function>bcdiv</function>.</para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcpow.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/bc/functions/bcpow.xml diff -u phpdoc-es/reference/bc/functions/bcpow.xml:1.3 phpdoc-es/reference/bc/functions/bcpow.xml:1.4 --- phpdoc-es/reference/bc/functions/bcpow.xml:1.3 Tue May 6 10:01:36 2003 +++ phpdoc-es/reference/bc/functions/bcpow.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.5 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: rafael Status: ready --> <refentry id="function.bcpow"> <refnamediv> @@ -12,7 +12,7 @@ <methodsynopsis> <type>string</type><methodname>bcpow</methodname> <methodparam><type>string</type><parameter>x</parameter></methodparam> - <methodparam><type>int</type><parameter>y</parameter></methodparam> + <methodparam><type>string</type><parameter>y</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>escala</parameter></methodparam> </methodsynopsis> @@ -23,6 +23,21 @@ número de dígitos tras el punto decimal del resultado.</para> <para> + <example> + <title>Ejemplo <function>bcpow</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcpow(4.2, 3, 2); // 74.08 + +?> +]]> + </programlisting> + </example> + </para> + <para> + Ver también <function>bcpowmod</function> y <function>bcsqrt</function></para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcdiv.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcdiv.xml diff -u phpdoc-es/reference/bc/functions/bcdiv.xml:1.2 phpdoc-es/reference/bc/functions/bcdiv.xml:1.3 --- phpdoc-es/reference/bc/functions/bcdiv.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcdiv.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bcdiv"> <refnamediv> @@ -23,6 +23,21 @@ punto decimal a usar en el resultado.</para> <para> + <example> + <title>Ejemplo <function>bcdiv</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcdiv(105, 6.55957, 3); // 16.007 + +?> +]]> + </programlisting> + </example> + </para> + <para> + Ver también <function>bcmul</function>.</para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/bc/functions/bcsub.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bc/functions/bcsub.xml diff -u phpdoc-es/reference/bc/functions/bcsub.xml:1.2 phpdoc-es/reference/bc/functions/bcsub.xml:1.3 --- phpdoc-es/reference/bc/functions/bcsub.xml:1.2 Wed Jun 5 16:13:09 2002 +++ phpdoc-es/reference/bc/functions/bcsub.xml Wed Aug 4 10:15:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: rafael Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: rafael Status: ready --> <refentry id="function.bcsub"> <refnamediv> @@ -23,6 +23,25 @@ se utiliza para fijar el número de dígitos tras el punto decimal del resultado.</para> <para> + <example> + <title>Ejemplo <function>bcsub</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$a = 1.234; +$b = 5; + +echo bcsub($a, $b); // -3 +echo bcsub($a, $b, 4); // -3.7660 + +?> +]]> + </programlisting> + </example> + </para> + <para> + Ver también <function>bcadd</function>.</para> </refsect1> </refentry>