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: 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>
« previous php.doc.ja (#1096) next »