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

nextUp

The least representable value that compares greater than this value. 表現可能な最も小さい値で、この値と比較してより大きいもの。

Declaration 宣言

var nextUp: Float { get }

Discussion 解説

For any finite value x, x.nextUp is greater than x. For nan or infinity, x.nextUp is x itself. The following special cases also apply: 何らかの有限値xに対して、x.nextUpxより大きいです。nanまたはinfinityに対して、x.nextUpxそれ自身です。以下の特別な場合もまた適用されます:

  • If x is -infinity, then x.nextUp is -greatestFiniteMagnitude. x-infinityならば、そのときx.nextUp-greatestFiniteMagnitudeです。

  • If x is -leastNonzeroMagnitude, then x.nextUp is -0.0. x-leastNonzeroMagnitudeならば、そのときx.nextUp-0.0です。

  • If x is zero, then x.nextUp is leastNonzeroMagnitude. xがゼロならば、そのときx.nextUpleastNonzeroMagnitudeです。

  • If x is greatestFiniteMagnitude, then x.nextUp is infinity. xgreatestFiniteMagnitudeならば、そのときx.nextUpinfinityです。

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Querying a Float Floatに問い合わせる