associatedtype Exponent
A type that can represent any written exponent.
init(Int)
Creates a new value, rounded to the closest possible representation.
init<Source>(Source)
Creates a new value, rounded to the closest possible representation.
init?<Source>(exactly: Source)
Creates a new value, if the given integer can be represented exactly.
init(sign: FloatingPointSign, exponent: Self.Exponent, significand: Self)
Creates a new value from the given sign, exponent, and significand.
init(signOf: Self, magnitudeOf: Self)
Creates a new floating-point value using the sign of one value and the magnitude of another.
static var greatestFiniteMagnitude: Self
The greatest finite number representable by this type.
static var infinity: Self
Positive infinity.
static var leastNonzeroMagnitude: Self
The least positive number.
static var leastNormalMagnitude: Self
The least positive normal number.
static var nan: Self
A quiet NaN (“not a number”).
static var pi: Self
The mathematical constant pi (π), approximately equal to 3.14159.
static var radix: Int
The radix, or base of exponentiation, for a floating-point type.
static var signalingNaN: Self
A signaling NaN (“not a number”).
static var ulpOfOne: Self
The unit in the last place of 1.0.
static func maximum(Self, Self) -> Self
Returns the greater of the two given values.
static func maximumMagnitude(Self, Self) -> Self
Returns the value with greater magnitude.
static func minimum(Self, Self) -> Self
Returns the lesser of the two given values.
static func minimumMagnitude(Self, Self) -> Self
Returns the value with lesser magnitude.
static func * (lhs: Self, rhs: Self) -> Self
Multiplies two values and produces their product, rounding to a representable value.
static func *= (lhs: inout Self, rhs: Self)
Multiplies two values and stores the result in the left-hand-side variable, rounding to a representable value.
static func + (lhs: Self, rhs: Self) -> Self
Adds two values and produces their sum, rounded to a representable value.
static func += (lhs: inout Self, rhs: Self)
Adds two values and stores the result in the left-hand-side variable, rounded to a representable value.
static func - (operand: Self) -> Self
Calculates the additive inverse of a value.
static func - (lhs: Self, rhs: Self) -> Self
Subtracts one value from another and produces their difference, rounded to a representable value.
static func -= (lhs: inout Self, rhs: Self)
Subtracts the second value from the first and stores the difference in the left-hand-side variable, rounding to a representable value.
static func / (lhs: Self, rhs: Self) -> Self
Returns the quotient of dividing the first value by the second, rounded to a representable value.
static func /= (lhs: inout Self, rhs: Self)
Divides the first value by the second and stores the quotient in the left-hand-side variable, rounding to a representable value.