bitstring() complement
[scilab.git] / scilab / modules / elementary_functions / help / ja_JP / integer_representation / bin2dec.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2008 - INRIA
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
17           xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
18           xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
19           xmlns:scilab="http://www.scilab.org" xml:id="bin2dec" xml:lang="ja">
20     <refnamediv>
21         <refname>bin2dec</refname>
22         <refpurpose>2進表現を整数に変換</refpurpose>
23     </refnamediv>
24     <refsynopsisdiv>
25         <title>呼び出し手順</title>
26         <synopsis>y=bin2dec(str)</synopsis>
27     </refsynopsisdiv>
28     <refsection>
29         <title>引数</title>
30         <variablelist>
31             <varlistentry>
32                 <term>str</term>
33                 <listitem>
34                     <para>
35                         文字 '1' および '0'のみを含む文字列の行列
36                     </para>
37                 </listitem>
38             </varlistentry>
39             <varlistentry>
40                 <term>y</term>
41                 <listitem>
42                     <para>double行列,正の整数値</para>
43                 </listitem>
44             </varlistentry>
45         </variablelist>
46     </refsection>
47     <refsection>
48         <title>説明</title>
49         <para>
50             2進文字列<literal>str</literal> を指定すると, この関数は,
51             その2進表現が<literal>str</literal>となるような
52             10進数 <literal>y</literal> を返します.
53             ( <literal>y</literal> と
54             <literal>str</literal> の大きさは同じになります).
55         </para>
56     </refsection>
57     <refsection>
58         <title>例</title>
59         <programlisting role="example"><![CDATA[
60 // example 1 :
61 // '1010110' : is the binary representation of 86
62 str='1010110';
63 y=bin2dec(str)
64
65 // example 2 :
66 // '1011011' : is the binary representation of 91
67 // '1010010' : is the binary representation of 82
68 str=['1011011'; '1010010']
69 y=bin2dec(str)
70  ]]></programlisting>
71     </refsection>
72     <refsection role="see also">
73         <title>参照</title>
74         <simplelist type="inline">
75             <member>
76                 <link linkend="base2dec">base2dec</link>
77             </member>
78             <member>
79                 <link linkend="oct2dec">oct2dec</link>
80             </member>
81             <member>
82                 <link linkend="hex2dec">hex2dec</link>
83             </member>
84             <member>
85                 <link linkend="dec2bin">dec2bin</link>
86             </member>
87             <member>
88                 <link linkend="bitstring">bitstring</link>
89             </member>
90         </simplelist>
91     </refsection>
92 </refentry>