Type Property

greatestFiniteMagnitude

The greatest finite number representable by this type.

Required.

Declaration

static var greatestFiniteMagnitude: Self { get }

Discussion

This value compares greater than or equal to all finite numbers, but less than infinity.

This value corresponds to type-specific C macros such as FLT_MAX and DBL_MAX. The naming of those macros is slightly misleading, because infinity is greater than this value.