Type Property

radix

The radix, or base of exponentiation, for this floating-point type.

Declaration

static var radix: Int { get }

Discussion

All binary floating-point types have a radix of 2. The magnitude of a floating-point value x of type F can be calculated by using the following formula, where ** is exponentiation:

let magnitude = x.significand * F.radix ** x.exponent