DoubleExtension extension

Floating point extensions on double.

on

Properties

nextDown → double

Available on double, provided by the DoubleExtension extension

Returns the nearest double in direction of negative infinity.
no setter
nextUp → double

Available on double, provided by the DoubleExtension extension

Returns the nearest double in direction of positive infinity.
no setter
ulp → double

Available on double, provided by the DoubleExtension extension

Returns the ulp (unit in the last place) of this value, that is the positive spacing between two consecutive floating-point numbers.
no setter

Methods

nextTowards(double other) → double

Available on double, provided by the DoubleExtension extension

Returns the nearest double in direction of other. If this is identical to other, other is returned.