62576eb4765ba13b9472a69049bb63e6ae4c073e
[scilab.git] / scilab / modules / integer / help / ja_JP / iconvert.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) 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" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="iconvert">
17     <refnamediv>
18         <refname>iconvert</refname>
19         <refpurpose>1または4バイト整数表現に変換する</refpurpose>
20     </refnamediv>
21     <refsynopsisdiv>
22         <title>呼び出し手順</title>
23         <synopsis>y=iconvert(X,itype)</synopsis>
24     </refsynopsisdiv>
25     <refsection>
26         <title>パラメータ</title>
27         <variablelist>
28             <varlistentry>
29                 <term>X</term>
30                 <listitem>
31                     <para>浮動小数点数または整数の行列</para>
32                 </listitem>
33             </varlistentry>
34             <varlistentry>
35                 <term>y</term>
36                 <listitem>
37                     <para>1,2または4バイト整数の行列.</para>
38                 </listitem>
39             </varlistentry>
40         </variablelist>
41     </refsection>
42     <refsection>
43         <title>説明</title>
44         <para>
45             1, 2 または 4バイト整数に変換し,保存します.
46         </para>
47         <variablelist>
48             <varlistentry>
49                 <term>itype=0</term>
50                 <listitem>
51                     <para>浮動小数点数を返します</para>
52                 </listitem>
53             </varlistentry>
54             <varlistentry>
55                 <term>itype=1</term>
56                 <listitem>
57                     <para>[-128,127]の範囲のint8型の数を返します</para>
58                 </listitem>
59             </varlistentry>
60             <varlistentry>
61                 <term>itype=11</term>
62                 <listitem>
63                     <para>[0,255]の範囲のuint8型の数を返します</para>
64                 </listitem>
65             </varlistentry>
66             <varlistentry>
67                 <term>itype=2</term>
68                 <listitem>
69                     <para>[-32768,32767]の範囲のint16型の数を返します</para>
70                 </listitem>
71             </varlistentry>
72             <varlistentry>
73                 <term>itype=12</term>
74                 <listitem>
75                     <para>[0, 65535]の範囲のuint16型の数を返します</para>
76                 </listitem>
77             </varlistentry>
78             <varlistentry>
79                 <term>itype=4</term>
80                 <listitem>
81                     <para>[-2147483648,2147483647]の範囲のint32型の数を返します</para>
82                 </listitem>
83             </varlistentry>
84             <varlistentry>
85                 <term>itype=14</term>
86                 <listitem>
87                     <para> [0, 4294967295]の範囲のuint32型の数を返します</para>
88                 </listitem>
89             </varlistentry>
90         </variablelist>
91     </refsection>
92     <refsection>
93         <title>例</title>
94         <programlisting role="example"><![CDATA[ 
95 b=int32([1 -120 127 312])
96 y=iconvert(b,1)
97  ]]></programlisting>
98     </refsection>
99     <refsection role="see also">
100         <title>参照</title>
101         <simplelist type="inline">
102             <member>
103                 <link linkend="double">double</link>
104             </member>
105             <member>
106                 <link linkend="inttype">inttype</link>
107             </member>
108         </simplelist>
109     </refsection>
110 </refentry>