The radix, or base of exponentiation, for this floating-point type.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
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