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

ulp

The unit in the last place of this value. この値の最終桁単位。

Declaration 宣言

var ulp: Float { get }

Discussion 解説

This is the unit of the least significant digit in this value’s significand. For most numbers x, this is the difference between x and the next greater (in magnitude) representable number. There are some edge cases to be aware of: これはこの値の仮数の中の最下位数の単位です。ほとんどの数xに対して、これはxと次の(規模における)より大きい表現可能な数との間の差異です。知られているいくつかの境界事例があります:

  • If x is not a finite number, then x.ulp is NaN. xが有限数でないならば、そのときx.ulpはNaNです。

  • If x is very small in magnitude, then x.ulp may be a subnormal number. If a type does not support subnormals, x.ulp may be rounded to zero. xが規模において非常に小さいならば、x.ulpはサブノーマル数かもしれません。ある型がサブノーマルをサポートしないならば、x.ulpはゼロに丸められるかもしれません。

  • greatestFiniteMagnitude.ulp is a finite number, even though the next greater representable value is infinity. greatestFiniteMagnitude.ulpは有限数です、たとえ次のより大きい表現可能な値がinfinityであるとしても。

See also the ulpOfOne static property. またulpOfOne静的プロパティを見てください。

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Querying a Float Floatに問い合わせる