Type Property

ulpOfOne

The unit in the last place of 1.0.

Required. Default implementation provided.

Declaration

static var ulpOfOne: Self { get }

Discussion

The positive difference between 1.0 and the next greater representable number. The ulpOfOne constant corresponds to the C macros FLT_EPSILON, DBL_EPSILON, and others with a similar purpose.

Default Implementations

FloatingPoint Implementations

static var ulpOfOne: Self

The unit in the last place of 1.0.