Scilab-Branch-6.1-GIT
      
      
    Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
ieee
浮動小数点例外モードを設定
呼出し手順
mod = ieee() ieee(mod)
引数
- mod
- 整数スカラーで,0,1または2を指定 
説明
ieee() はカレントの浮動小数点例外モード
            を返します.
        
- 0
- 浮動小数点例外はエラーを発生 - %infand- %nanspecial values can be used in this mode without error. For instance,- %inf/%inf,- %inf-%infor- %inf/%nanare known operations.
- 1
- 浮動小数点例外は警告を発生.
- 2
- 浮動小数点例外は無限大(Inf)またはNaNを発生.
ieee(mod) sets the current floating point exception mode to
            mod.
|  | The default initial mode is 2. This default value may be set in any of the following ways:
             
 | 
|  | ライブラリのアルゴリズムの内部で発生した浮動小数点例外は,
            まだ ieeeモードでは設定できません. | 
例
ieee(1); 1/0 ieee(2); 1/0, log(0)
参照
- %nan — not-a-number
- %inf — 無限大
- isinf — tests for infinite elements
- isnan — "Not a Number" エントリを調べる
- number_properties — 浮動小数点数パラメータを定義する
履歴
| バージョン | 記述 | 
| 6.0.0 | 2 is now the initial mode value. | 
| Report an issue | ||
| << format | Floating point | int >> |