Type Property 型プロパティ

signalingNaN

A signaling NaN (“not a number”). シグナルNaN(非数)。

Declaration 宣言

static var signalingNaN: Float { get }

Discussion 解説

The default IEEE 754 behavior of operations involving a signaling NaN is to raise the Invalid flag in the floating-point environment and return a quiet NaN. シグナルNaNを伴う演算の初期状態のIEEE 754挙動は、無効なフラグを浮動小数点環境において上げて、クワイエットNaNを返すことになります。

Operations on types conforming to the FloatingPoint protocol should support this behavior, but they might also support other options. For example, it would be reasonable to implement alternative operations in which operating on a signaling NaN triggers a runtime error or results in a diagnostic for debugging purposes. Types that implement alternative behaviors for a signaling NaN must document the departure. FloatingPointプロトコルに準拠する型での演算はこの挙動をサポートします、しかしそれらはまた他の選択肢もサポートするかもしれません。例えば、それらにおいてはシグナルNaNに関する演算が実行時エラーを引き起こすまたはデバッグ目的の診断という結果になるといった、代替の演算を実装するのが妥当であるかもしれません。シグナルNaNに対する代替の挙動を実装する型は、その逸脱を文書化しなければなりません。

Other than these signaling operations, a signaling NaN behaves in the same manner as a quiet NaN. これらのシグナル演算の他は、シグナルNaNはクワイエットNaNと同じ流儀で振舞います。

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Accessing Numeric Constants 数に関する定数にアクセスする