cvs: phpdoc-ja /reference/bc/functions bcadd.xml bccomp.xml bcdiv.xml bcmod.xml bcmul.xml bcpow.xml bcscale.xml bcsqrt.xml bcsub.xml
| From: | TAKAGI Masahiro | Date: | Sun, 31 Jul 2005 03:33:25 +0000 |
| Subject: | cvs: phpdoc-ja /reference/bc/functions bcadd.xml bccomp.xml bcdiv.xml bcmod.xml bcmul.xml bcpow.xml bcscale.xml bcsqrt.xml bcsub.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-1096@lists.php.net to get a copy of this message | ||
takagi Sat Jul 30 23:33:25 2005 EDT
Modified files:
/phpdoc-ja/reference/bc/functions bcsub.xml bcsqrt.xml bcscale.xml
bcpow.xml bcmul.xml bcmod.xml
bcdiv.xml bccomp.xml bcadd.xml
Log:
sync with en.
http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcsub.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcsub.xml diff -u phpdoc-ja/reference/bc/functions/bcsub.xml:1.4 phpdoc-ja/reference/bc/functions/bcsub.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcsub.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcsub.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcsub"> <refnamediv> <refname>bcsub</refname> @@ -10,11 +12,9 @@ <title>説æ</title> <methodsynopsis> <type>string</type><methodname>bcsub</methodname> - <methodparam><type>string</type><parameter>left operand</parameter></methodparam> - <methodparam><type>string</type><parameter>right operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam><type>string</type><parameter>left_operand</parameter></methodparam> + <methodparam><type>string</type><parameter>right_operand</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>right operand</parameter> ãã @@ -22,8 +22,30 @@ ãªãã·ã§ã³ã® <parameter>scale</parameter> ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><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> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcadd</function>ãåç §ãã ããã + <function>bcadd</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcsqrt.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcsqrt.xml diff -u phpdoc-ja/reference/bc/functions/bcsqrt.xml:1.4 phpdoc-ja/reference/bc/functions/bcsqrt.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcsqrt.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcsqrt.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcsqrt"> <refnamediv> <refname>bcsqrt</refname> @@ -11,17 +13,33 @@ <methodsynopsis> <type>string</type><methodname>bcsqrt</methodname> <methodparam><type>string</type><parameter>operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>operand</parameter> ã®å¹³æ¹æ ¹ãè¿ãã¾ãã ãªãã·ã§ã³ã® <parameter>scale</parameter> ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcsqrt</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcsqrt('2', 3); // 1.414 + +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcpow</function>ãåç §ãã ããã + <function>bcpow</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcscale.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/bc/functions/bcscale.xml diff -u phpdoc-ja/reference/bc/functions/bcscale.xml:1.3 phpdoc-ja/reference/bc/functions/bcscale.xml:1.4 --- phpdoc-ja/reference/bc/functions/bcscale.xml:1.3 Mon Nov 22 23:45:29 2004 +++ phpdoc-ja/reference/bc/functions/bcscale.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcscale"> <refnamediv> <refname>bcscale</refname> @@ -11,15 +13,36 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>string</type><methodname>bcscale</methodname> + <type>bool</type><methodname>bcscale</methodname> <methodparam><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> ãã®é¢æ°ã¯ãå¾ç¶ã®ãã¹ã¦ã® BC æ¼ç®é¢æ°ã«ããã¦ãæç¤ºçã« <parameter>scale</parameter> ãã©ã¡ã¼ã¿ãæå®ãããªãå ´åã® ã¹ã±ã¼ã«(çµæã®ç²¾åº¦ãå°æ°ç¹ä»¥ä¸ã®æ¡æ°) ã®ããã©ã«ãå¤ãè¨å®ãã¾ãã + &return.success; </para> </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcscale</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// ããã©ã«ãã®ã¹ã±ã¼ã« : 3 +bcscale(3); +echo bcdiv('105', '6.55957'); // 16.007 + +// bcscale() ã使ããã«åãçµæãå¾ã +echo bcdiv('105', '6.55957', 3); // 16.007 + +?> +]]> + </programlisting> + </example> + </refsect1> </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcpow.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcpow.xml diff -u phpdoc-ja/reference/bc/functions/bcpow.xml:1.4 phpdoc-ja/reference/bc/functions/bcpow.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcpow.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcpow.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcpow"> <refnamediv> <refname>bcpow</refname> @@ -12,17 +14,34 @@ <type>string</type><methodname>bcpow</methodname> <methodparam><type>string</type><parameter>x</parameter></methodparam> <methodparam><type>string</type><parameter>y</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>x</parameter> ã® <parameter>y</parameter> ä¹ãæ±ãã¾ãã ãªãã·ã§ã³ã® <parameter>scale</parameter> ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcpow</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcpow('4.2', '3', 2); // 74.08 + +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcsqrt</function>ãåç §ãã ããã + <function>bcpowmod</function> &listendand; + <function>bcsqrt</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcmul.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcmul.xml diff -u phpdoc-ja/reference/bc/functions/bcmul.xml:1.4 phpdoc-ja/reference/bc/functions/bcmul.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcmul.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcmul.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcmul"> <refnamediv> <refname>bcmul</refname> @@ -10,11 +12,9 @@ <title>説æ</title> <methodsynopsis> <type>string</type><methodname>bcmul</methodname> - <methodparam><type>string</type><parameter>left operand</parameter></methodparam> - <methodparam><type>string</type><parameter>right operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam><type>string</type><parameter>left_operand</parameter></methodparam> + <methodparam><type>string</type><parameter>right_operand</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>left operand</parameter> 㨠<parameter>right operand @@ -22,8 +22,25 @@ ãªãã·ã§ã³ã® <parameter>scale</parameter> ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcmul</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmul('1.34747474747', '35', 3); // 47.162 +echo bcmul('2', '4'); // 8 +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcdiv</function>ãåç §ãã ããã + <function>bcdiv</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcmod.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcmod.xml diff -u phpdoc-ja/reference/bc/functions/bcmod.xml:1.4 phpdoc-ja/reference/bc/functions/bcmod.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcmod.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcmod.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcmod"> <refnamediv> <refname>bcmod</refname> @@ -17,8 +19,25 @@ <parameter>modulus</parameter> ã§ <parameter>left operand </parameter>ãå²ã£ãä½ããæ±ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcmod</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmod('4', '2'); // 0 +echo bcmod('2', '4'); // 2 +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcdiv</function>ãåç §ãã ããã + <function>bcdiv</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcdiv.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcdiv.xml diff -u phpdoc-ja/reference/bc/functions/bcdiv.xml:1.4 phpdoc-ja/reference/bc/functions/bcdiv.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcdiv.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcdiv.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcdiv"> <refnamediv> <refname>bcdiv</refname> @@ -10,20 +12,36 @@ <title>説æ</title> <methodsynopsis> <type>string</type><methodname>bcdiv</methodname> - <methodparam><type>string</type><parameter>left operand</parameter></methodparam> - <methodparam><type>string</type><parameter>right operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam><type>string</type><parameter>left_operand</parameter></methodparam> + <methodparam><type>string</type><parameter>right_operand</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>left operand</parameter>ã<parameter>right operand </parameter>ã§é¤ç®ãã¦ããã®çµæãè¿ãã¾ãã ãªãã·ã§ã³ã®<parameter>scale</parameter>ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã - å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã + å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ããããã©ã«ã㯠0 ã§ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcdiv</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcdiv('105', '6.55957', 3); // 16.007 + +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcmul</function>ãåç §ãã ããã + <function>bcmul</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bccomp.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/bc/functions/bccomp.xml diff -u phpdoc-ja/reference/bc/functions/bccomp.xml:1.3 phpdoc-ja/reference/bc/functions/bccomp.xml:1.4 --- phpdoc-ja/reference/bc/functions/bccomp.xml:1.3 Mon Nov 22 23:45:29 2004 +++ phpdoc-ja/reference/bc/functions/bccomp.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bccomp"> <refnamediv> <refname>bccomp</refname> @@ -10,11 +12,9 @@ <title>説æ</title> <methodsynopsis> <type>int</type><methodname>bccomp</methodname> - <methodparam><type>string</type><parameter>left operand</parameter></methodparam> - <methodparam><type>string</type><parameter>right operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam><type>string</type><parameter>left_operand</parameter></methodparam> + <methodparam><type>string</type><parameter>right_operand</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>left operand</parameter> ã <parameter>right operand @@ -26,6 +26,23 @@ ãã大ãããã°è¿ãå¤ã¯ +1ã«ãªããå°ãããã° -1 ã«ãªãã¾ãã </para> </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bccomp</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bccomp('1', '2') . "\n"; // -1 +echo bccomp('1.00001', '1', 3); // 0 +echo bccomp('1.00001', '1', 5); // 1 + +?> +]]> + </programlisting> + </example> + </refsect1> </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcadd.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcadd.xml diff -u phpdoc-ja/reference/bc/functions/bcadd.xml:1.4 phpdoc-ja/reference/bc/functions/bcadd.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcadd.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcadd.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcadd"> <refnamediv> <refname>bcadd</refname> @@ -10,11 +12,9 @@ <title>説æ</title> <methodsynopsis> <type>string</type><methodname>bcadd</methodname> - <methodparam><type>string</type><parameter>left operand</parameter></methodparam> - <methodparam><type>string</type><parameter>right operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam><type>string</type><parameter>left_operand</parameter></methodparam> + <methodparam><type>string</type><parameter>right_operand</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>left operand</parameter> ã <parameter>right operand @@ -22,8 +22,30 @@ ãªãã·ã§ã³ã® <parameter>scale</parameter> ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><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> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcsub</function>ãåç §ãã ããã + <function>bcsub</function> </para> </refsect1> </refentry>
http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcsub.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcsub.xml diff -u phpdoc-ja/reference/bc/functions/bcsub.xml:1.4 phpdoc-ja/reference/bc/functions/bcsub.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcsub.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcsub.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcsub"> <refnamediv> <refname>bcsub</refname> @@ -10,11 +12,9 @@ <title>説æ</title> <methodsynopsis> <type>string</type><methodname>bcsub</methodname> - <methodparam><type>string</type><parameter>left operand</parameter></methodparam> - <methodparam><type>string</type><parameter>right operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam><type>string</type><parameter>left_operand</parameter></methodparam> + <methodparam><type>string</type><parameter>right_operand</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>right operand</parameter> ãã @@ -22,8 +22,30 @@ ãªãã·ã§ã³ã® <parameter>scale</parameter> ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><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> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcadd</function>ãåç §ãã ããã + <function>bcadd</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcsqrt.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcsqrt.xml diff -u phpdoc-ja/reference/bc/functions/bcsqrt.xml:1.4 phpdoc-ja/reference/bc/functions/bcsqrt.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcsqrt.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcsqrt.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcsqrt"> <refnamediv> <refname>bcsqrt</refname> @@ -11,17 +13,33 @@ <methodsynopsis> <type>string</type><methodname>bcsqrt</methodname> <methodparam><type>string</type><parameter>operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>operand</parameter> ã®å¹³æ¹æ ¹ãè¿ãã¾ãã ãªãã·ã§ã³ã® <parameter>scale</parameter> ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcsqrt</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcsqrt('2', 3); // 1.414 + +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcpow</function>ãåç §ãã ããã + <function>bcpow</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcscale.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/bc/functions/bcscale.xml diff -u phpdoc-ja/reference/bc/functions/bcscale.xml:1.3 phpdoc-ja/reference/bc/functions/bcscale.xml:1.4 --- phpdoc-ja/reference/bc/functions/bcscale.xml:1.3 Mon Nov 22 23:45:29 2004 +++ phpdoc-ja/reference/bc/functions/bcscale.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcscale"> <refnamediv> <refname>bcscale</refname> @@ -11,15 +13,36 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>string</type><methodname>bcscale</methodname> + <type>bool</type><methodname>bcscale</methodname> <methodparam><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> ãã®é¢æ°ã¯ãå¾ç¶ã®ãã¹ã¦ã® BC æ¼ç®é¢æ°ã«ããã¦ãæç¤ºçã« <parameter>scale</parameter> ãã©ã¡ã¼ã¿ãæå®ãããªãå ´åã® ã¹ã±ã¼ã«(çµæã®ç²¾åº¦ãå°æ°ç¹ä»¥ä¸ã®æ¡æ°) ã®ããã©ã«ãå¤ãè¨å®ãã¾ãã + &return.success; </para> </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcscale</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// ããã©ã«ãã®ã¹ã±ã¼ã« : 3 +bcscale(3); +echo bcdiv('105', '6.55957'); // 16.007 + +// bcscale() ã使ããã«åãçµæãå¾ã +echo bcdiv('105', '6.55957', 3); // 16.007 + +?> +]]> + </programlisting> + </example> + </refsect1> </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcpow.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcpow.xml diff -u phpdoc-ja/reference/bc/functions/bcpow.xml:1.4 phpdoc-ja/reference/bc/functions/bcpow.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcpow.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcpow.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcpow"> <refnamediv> <refname>bcpow</refname> @@ -12,17 +14,34 @@ <type>string</type><methodname>bcpow</methodname> <methodparam><type>string</type><parameter>x</parameter></methodparam> <methodparam><type>string</type><parameter>y</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>x</parameter> ã® <parameter>y</parameter> ä¹ãæ±ãã¾ãã ãªãã·ã§ã³ã® <parameter>scale</parameter> ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcpow</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcpow('4.2', '3', 2); // 74.08 + +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcsqrt</function>ãåç §ãã ããã + <function>bcpowmod</function> &listendand; + <function>bcsqrt</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcmul.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcmul.xml diff -u phpdoc-ja/reference/bc/functions/bcmul.xml:1.4 phpdoc-ja/reference/bc/functions/bcmul.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcmul.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcmul.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcmul"> <refnamediv> <refname>bcmul</refname> @@ -10,11 +12,9 @@ <title>説æ</title> <methodsynopsis> <type>string</type><methodname>bcmul</methodname> - <methodparam><type>string</type><parameter>left operand</parameter></methodparam> - <methodparam><type>string</type><parameter>right operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam><type>string</type><parameter>left_operand</parameter></methodparam> + <methodparam><type>string</type><parameter>right_operand</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>left operand</parameter> 㨠<parameter>right operand @@ -22,8 +22,25 @@ ãªãã·ã§ã³ã® <parameter>scale</parameter> ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcmul</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmul('1.34747474747', '35', 3); // 47.162 +echo bcmul('2', '4'); // 8 +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcdiv</function>ãåç §ãã ããã + <function>bcdiv</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcmod.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcmod.xml diff -u phpdoc-ja/reference/bc/functions/bcmod.xml:1.4 phpdoc-ja/reference/bc/functions/bcmod.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcmod.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcmod.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcmod"> <refnamediv> <refname>bcmod</refname> @@ -17,8 +19,25 @@ <parameter>modulus</parameter> ã§ <parameter>left operand </parameter>ãå²ã£ãä½ããæ±ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcmod</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmod('4', '2'); // 0 +echo bcmod('2', '4'); // 2 +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcdiv</function>ãåç §ãã ããã + <function>bcdiv</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcdiv.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcdiv.xml diff -u phpdoc-ja/reference/bc/functions/bcdiv.xml:1.4 phpdoc-ja/reference/bc/functions/bcdiv.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcdiv.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcdiv.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcdiv"> <refnamediv> <refname>bcdiv</refname> @@ -10,20 +12,36 @@ <title>説æ</title> <methodsynopsis> <type>string</type><methodname>bcdiv</methodname> - <methodparam><type>string</type><parameter>left operand</parameter></methodparam> - <methodparam><type>string</type><parameter>right operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam><type>string</type><parameter>left_operand</parameter></methodparam> + <methodparam><type>string</type><parameter>right_operand</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>left operand</parameter>ã<parameter>right operand </parameter>ã§é¤ç®ãã¦ããã®çµæãè¿ãã¾ãã ãªãã·ã§ã³ã®<parameter>scale</parameter>ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã - å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã + å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ããããã©ã«ã㯠0 ã§ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bcdiv</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcdiv('105', '6.55957', 3); // 16.007 + +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcmul</function>ãåç §ãã ããã + <function>bcmul</function> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bccomp.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/bc/functions/bccomp.xml diff -u phpdoc-ja/reference/bc/functions/bccomp.xml:1.3 phpdoc-ja/reference/bc/functions/bccomp.xml:1.4 --- phpdoc-ja/reference/bc/functions/bccomp.xml:1.3 Mon Nov 22 23:45:29 2004 +++ phpdoc-ja/reference/bc/functions/bccomp.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bccomp"> <refnamediv> <refname>bccomp</refname> @@ -10,11 +12,9 @@ <title>説æ</title> <methodsynopsis> <type>int</type><methodname>bccomp</methodname> - <methodparam><type>string</type><parameter>left operand</parameter></methodparam> - <methodparam><type>string</type><parameter>right operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam><type>string</type><parameter>left_operand</parameter></methodparam> + <methodparam><type>string</type><parameter>right_operand</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>left operand</parameter> ã <parameter>right operand @@ -26,6 +26,23 @@ ãã大ãããã°è¿ãå¤ã¯ +1ã«ãªããå°ãããã° -1 ã«ãªãã¾ãã </para> </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><function>bccomp</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bccomp('1', '2') . "\n"; // -1 +echo bccomp('1.00001', '1', 3); // 0 +echo bccomp('1.00001', '1', 5); // 1 + +?> +]]> + </programlisting> + </example> + </refsect1> </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/phpdoc-ja/reference/bc/functions/bcadd.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/bc/functions/bcadd.xml diff -u phpdoc-ja/reference/bc/functions/bcadd.xml:1.4 phpdoc-ja/reference/bc/functions/bcadd.xml:1.5 --- phpdoc-ja/reference/bc/functions/bcadd.xml:1.4 Sun Jan 2 02:23:27 2005 +++ phpdoc-ja/reference/bc/functions/bcadd.xml Sat Jul 30 23:33:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/bc.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.bcadd"> <refnamediv> <refname>bcadd</refname> @@ -10,11 +12,9 @@ <title>説æ</title> <methodsynopsis> <type>string</type><methodname>bcadd</methodname> - <methodparam><type>string</type><parameter>left operand</parameter></methodparam> - <methodparam><type>string</type><parameter>right operand</parameter></methodparam> - <methodparam><type>int</type><parameter> - <replaceable><optional>scale</optional></replaceable> - </parameter></methodparam> + <methodparam><type>string</type><parameter>left_operand</parameter></methodparam> + <methodparam><type>string</type><parameter>right_operand</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> </methodsynopsis> <para> <parameter>left operand</parameter> ã <parameter>right operand @@ -22,8 +22,30 @@ ãªãã·ã§ã³ã® <parameter>scale</parameter> ãã©ã¡ã¼ã¿ã¯ãçµæã«ããã å°æ°ç¹ä»¥ä¸ã®æ¡æ°ãæå®ããããã«ä½¿ç¨ãã¾ãã </para> + </refsect1> + <refsect1> + &reftitle.examples; + <example> + <title><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> + </refsect1> + <refsect1> + &reftitle.seealso; <para> - <function>bcsub</function>ãåç §ãã ããã + <function>bcsub</function> </para> </refsect1> </refentry>