4aaf7e7b711418dbb29b2e85c173a9e7aa1ebfe8
[scilab.git] / scilab / modules / integer / help / ru_RU / 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" version="5.0-subset Scilab" xml:lang="ru" 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>itype</term>
36                 <listitem>
37                     <para>целое число, тип преобразования.</para>
38                 </listitem>
39             </varlistentry>
40             <varlistentry>
41                 <term>y</term>
42                 <listitem>
43                     <para>матрица целых чисел, закодированных в одном, двух или четырёх байтах.</para>
44                 </listitem>
45             </varlistentry>
46         </variablelist>
47     </refsection>
48     <refsection>
49         <title>Описание</title>
50         <para>
51             Функция <function>iconvert</function> преобразует и хранит данные в виде одно-,
52             двух- или четырёхбайтных целых чисел.
53         </para>
54         <variablelist>
55             <varlistentry>
56                 <term>itype = 0</term>
57                 <listitem>
58                     <para>
59                         возвращает числа с плавающей запятой
60                     </para>
61                 </listitem>
62             </varlistentry>
63             <varlistentry>
64                 <term>itype = 1</term>
65                 <listitem>
66                     <para>
67                         возвращает числа <literal>int8</literal> в диапазоне <literal>[-128, 127]</literal>
68                     </para>
69                 </listitem>
70             </varlistentry>
71             <varlistentry>
72                 <term>itype = 11</term>
73                 <listitem>
74                     <para>
75                         возвращает числа <literal>uint8</literal> в диапазоне <literal>[0, 255]</literal>
76                     </para>
77                 </listitem>
78             </varlistentry>
79             <varlistentry>
80                 <term>itype = 2</term>
81                 <listitem>
82                     <para>
83                         возвращает числа <literal>int16</literal> в диапазоне <literal>[-32768, 32767]</literal>
84                     </para>
85                 </listitem>
86             </varlistentry>
87             <varlistentry>
88                 <term>itype = 12</term>
89                 <listitem>
90                     <para>
91                         возвращает числа <literal>uint16</literal> в диапазоне <literal>[0, 65535]</literal>
92                     </para>
93                 </listitem>
94             </varlistentry>
95             <varlistentry>
96                 <term>itype = 4</term>
97                 <listitem>
98                     <para>
99                         возвращает числа <literal>int32</literal> в диапазоне <literal>[-2147483648, 2147483647]</literal>
100                     </para>
101                 </listitem>
102             </varlistentry>
103             <varlistentry>
104                 <term>itype = 14</term>
105                 <listitem>
106                     <para>
107                         возвращает числа <literal>uint32</literal> в диапазоне <literal>[0, 4294967295]</literal>
108                     </para>
109                 </listitem>
110             </varlistentry>
111         </variablelist>
112     </refsection>
113     <refsection>
114         <title>Примеры</title>
115         <programlisting role="example"><![CDATA[ 
116 b=int32([1 -120 127 312])
117 y=iconvert(b,1)
118  
119 typeof(b)
120 typeof(y)
121  ]]></programlisting>
122     </refsection>
123     <refsection role="see also">
124         <title>Смотрите также</title>
125         <simplelist type="inline">
126             <member>
127                 <link linkend="double">double</link>
128             </member>
129             <member>
130                 <link linkend="int8">int8</link>
131             </member>
132             <member>
133                 <link linkend="inttype">inttype</link>
134             </member>
135         </simplelist>
136     </refsection>
137 </refentry>
138