* Bug 15431 fixed [doc]: empty [] better documented
[scilab.git] / scilab / modules / integer / help / ru_RU / int8.xml
index e5fd52f..b0f6f13 100644 (file)
             For more details, please refer to the <link linkend="double">double()</link> page.
             </para>
         </warning>
+        <warning>
+            Converting <literal>[]</literal> always keeps it as is, of type 1 (decimal type).
+        </warning>
         <para>
             <table>
                 <tr><th>Function</th><th>y in</th><th align="left">=</th></tr>
@@ -260,6 +263,41 @@ uint8(-10.2 + 3.4*%i)
  ans  =
   246
 ]]></screen>
+    <para>
+        [] is not convertible:
+    </para>
+    <programlisting role="example"><![CDATA[
+i = uint16(3);
+i(1,2) = 5.6
+typeof(i)
+
+i = uint16([])
+i(1,2) = 2.3
+typeof(i)
+ ]]></programlisting>
+    <screen><![CDATA[
+--> i = uint16(3);
+--> i(1,2) = 5.6
+ i  =
+  3  5
+
+--> typeof(i)
+ ans  =
+ uint16
+
+
+--> i = uint16([])
+ i  =
+    []
+
+--> i(1,2) = 2.3
+ i  =
+   0.   2.3
+
+--> typeof(i)
+ ans  =
+ constant
+]]></screen>
     </refsection>
     <refsection role="see also">
         <title>Смотрите также</title>