* Bug 16148: xmlSetValues() <= setPreferencesValue()
[scilab.git] / scilab / modules / elementary_functions / help / ja_JP / floating_point / ieee.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  * Copyright (C) 2017 - Samuel GOUGEON
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 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
18           xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
19           xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
20           xmlns:scilab="http://www.scilab.org" xml:id="ieee" xml:lang="ja">
21     <refnamediv>
22         <refname>ieee</refname>
23         <refpurpose>浮動小数点例外モードを設定</refpurpose>
24     </refnamediv>
25     <refsynopsisdiv>
26         <title>呼出し手順</title>
27         <synopsis>
28             mod = ieee()
29             ieee(mod)
30         </synopsis>
31     </refsynopsisdiv>
32     <refsection>
33         <title>引数</title>
34         <variablelist>
35             <varlistentry>
36                 <term>mod</term>
37                 <listitem>
38                     <para>
39                         整数スカラーで,0,1または2を指定
40                     </para>
41                 </listitem>
42             </varlistentry>
43         </variablelist>
44     </refsection>
45     <refsection>
46         <title>説明</title>
47         <para>
48             <literal>ieee()</literal> はカレントの浮動小数点例外モード
49             を返します.
50         <variablelist>
51             <varlistentry>
52                 <term>0</term>
53                 <listitem>
54                     <para>浮動小数点例外はエラーを発生</para>
55                     <para>
56                        <literal>%inf</literal> and <literal>%nan</literal> special values can be
57                        used in this mode without error. For instance, <literal>%inf/%inf</literal>,
58                        <literal>%inf-%inf</literal> or <literal>%inf/%nan</literal> are known
59                        operations.
60                     </para>
61                 </listitem>
62             </varlistentry>
63             <varlistentry>
64                 <term>1</term>
65                 <listitem>
66                     浮動小数点例外は警告を発生.
67                 </listitem>
68             </varlistentry>
69             <varlistentry>
70                 <term>2</term>
71                 <listitem>
72                     浮動小数点例外は無限大(Inf)またはNaNを発生.
73                 </listitem>
74             </varlistentry>
75         </variablelist>
76         </para>
77         <para>
78             <literal>ieee(mod)</literal> sets the current floating point exception mode to
79             <varname>mod</varname>.
80         </para>
81         <note>
82             The default initial mode is 2. This default value may be set in any of the following ways:
83             <itemizedlist>
84                 <listitem>
85                   Through the Preferences GUI: <code>preferences</code>, in the section
86                   <emphasis role="italic">General => Environment => ieee</emphasis>.
87                 </listitem>
88                 <listitem>
89                   Equivalently, using <code>xmlSetValues</code> as follows (to set the mode to 1) :
90                   <para>
91                   <literal>xmlSetValues("//general/body/environment", ["fpe";"1"])</literal>
92                   </para>
93                 </listitem>
94                 <listitem>
95                     Or by using <literal>ieee(mod)</literal> in your startup file.
96                 </listitem>
97             </itemizedlist>
98         </note>
99         <warning>
100             ライブラリのアルゴリズムの内部で発生した浮動小数点例外は,
101             まだ<literal>ieee</literal>モードでは設定できません.
102         </warning>
103     </refsection>
104     <refsection>
105         <title>例</title>
106         <programlisting role="example"><![CDATA[
107 ieee(1); 1/0
108 ieee(2); 1/0, log(0)
109  ]]></programlisting>
110     </refsection>
111     <refsection role="see also">
112         <title>参照</title>
113         <simplelist type="inline">
114             <member>
115                 <link linkend="percentnan">%nan</link>
116             </member>
117             <member>
118                 <link linkend="percentinf">%inf</link>
119             </member>
120             <member>
121                 <link linkend="isinf">isinf</link>
122             </member>
123             <member>
124                 <link linkend="isnan">isnan</link>
125             </member>
126             <member>
127                 <link linkend="number_properties">number_properties</link>
128             </member>
129         </simplelist>
130     </refsection>
131     <refsection role="history">
132         <title>履歴</title>
133         <revhistory>
134             <revision>
135                 <revnumber>6.0.0</revnumber>
136                 <revremark>2 is now the initial mode value.</revremark>
137             </revision>
138         </revhistory>
139     </refsection>
140 </refentry>