c61881f762956eb009d6f75f0e444e23981dfed8
[scilab.git] / scilab / modules / elementary_functions / help / ja_JP / integer_representation / bin2dec.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5  * Copyright (C) 2008 - INRIA
6  *
7  * Copyright (C) 2012 - 2016 - Scilab Enterprises
8  *
9  * This file is hereby licensed under the terms of the GNU GPL v2.0,
10  * pursuant to article 5.3.4 of the CeCILL v.2.1.
11  * This file was originally licensed under the terms of the CeCILL v2.1,
12  * and continues to be available under such terms.
13  * For more information, see the COPYING file which you should have received
14  * along with this program.
15  *
16  -->
17
18 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="bin2dec" xml:lang="ja">
19
20     <refnamediv>
21
22         <refname>bin2dec</refname>
23
24         <refpurpose>2進表現を整数に変換</refpurpose>
25
26     </refnamediv>
27
28     <refsynopsisdiv>
29
30         <title>呼び出し手順</title>
31
32         <synopsis>y=bin2dec(str)</synopsis>
33
34     </refsynopsisdiv>
35
36     <refsection>
37
38         <title>引数</title>
39
40         <variablelist>
41
42             <varlistentry>
43
44                 <term>str</term>
45
46                 <listitem>
47
48                     <para>
49
50                         文字 '1' および '0'のみを含む文字列の行列
51
52                     </para>
53
54                 </listitem>
55
56             </varlistentry>
57
58             <varlistentry>
59
60                 <term>y</term>
61
62                 <listitem>
63
64                     <para>double行列,正の整数値</para>
65
66                 </listitem>
67
68             </varlistentry>
69
70         </variablelist>
71
72     </refsection>
73
74     <refsection>
75
76         <title>説明</title>
77
78         <para>
79
80             2進文字列<literal>str</literal> を指定すると, この関数は,
81
82             その2進表現が<literal>str</literal>となるような
83
84             10進数 <literal>y</literal> を返します.
85
86             ( <literal>y</literal> と
87
88             <literal>str</literal> の大きさは同じになります).
89
90         </para>
91
92     </refsection>
93
94     <refsection>
95
96         <title>例</title>
97
98         <programlisting role="example"><![CDATA[
99 // example 1 :
100 // '1010110' : is the binary representation of 86
101 str='1010110';
102 y=bin2dec(str)
103 // example 2 :
104 // '1011011' : is the binary representation of 91
105 // '1010010' : is the binary representation of 82
106 str=['1011011'; '1010010']
107 y=bin2dec(str)
108  ]]></programlisting>
109
110     </refsection>
111
112     <refsection role="see also">
113
114         <title>参照</title>
115
116         <simplelist type="inline">
117
118             <member>
119
120                 <link linkend="base2dec">base2dec</link>
121
122             </member>
123
124             <member>
125
126                 <link linkend="oct2dec">oct2dec</link>
127
128             </member>
129
130             <member>
131
132                 <link linkend="hex2dec">hex2dec</link>
133
134             </member>
135
136             <member>
137
138                 <link linkend="dec2bin">dec2bin</link>
139
140             </member>
141
142             <member>
143
144                 <link linkend="dec2oct">dec2oct</link>
145
146             </member>
147
148             <member>
149
150                 <link linkend="dec2hex">dec2hex</link>
151
152             </member>
153
154         </simplelist>
155
156     </refsection>
157
158 </refentry>
159