Instance Property インスタンスプロパティ

binade

The floating-point value with the same sign and exponent as this value, but with a significand of 1.0. この値と同じ符号と指数を持つ浮動小数点値、しかし1.0の仮数を持ちます。

Declaration 宣言

var binade: Float { get }

Discussion 解説

A binade is a set of binary floating-point values that all have the same sign and exponent. The binade property is a member of the same binade as this value, but with a unit significand. binadeは、バイナリ浮動小数点値の一揃いです、それは全てが同じ符号と指数を持ちます。binadeプロパティは、この値と同じbinadeに属するあるメンバです、しかしある単位仮数を持ちます。

In this example, x has a value of 21.5, which is stored as 1.34375 * 2**4, where ** is exponentiation. Therefore, x.binade is equal to 1.0 * 2**4, or 16.0. この例において、x21.5の値を持ちます、それは1.34375 * 2**4として格納されます、ここで**は冪です。それゆえに、x.binade1.0 * 2**4、または16.0と等しいです。


let x = 21.5
// x.significand == 1.34375
// x.exponent == 4


let y = x.binade
// y == 16.0
// y.significand == 1.0
// y.exponent == 4

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Querying a Float Floatに問い合わせる