The zero value.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
static var zero: Double { get }
Discussion
Zero is the identity element for addition. For any value, x + .zero == x
and .zero + x == x
.
The zero value.
SDK
Framework
static var zero: Double { get }
Zero is the identity element for addition. For any value, x + .zero == x
and .zero + x == x
.
static var pi: Double
The mathematical constant pi.
static var infinity: Double
Positive infinity.
static var greatestFiniteMagnitude : Double
The greatest finite number representable by this type.
static var nan: Double
A quiet NaN (“not a number”).
static var signalingNaN : Double
A signaling NaN (“not a number”).
static var ulpOfOne : Double
The unit in the last place of 1.0.
static var leastNonzeroMagnitude : Double
The least positive number.
static var leastNormalMagnitude : Double
The least positive normal number.