Instance Propertyswift 6.0.1Swift
debugDescription
A textual representation of the value, suitable for debugging.
var debugDescription: String { get }
This property has the same value as the description
property, except that NaN values are printed in an extended format.
Other members in extension
Types
struct SIMD16Storage
Storage for a vector of 16 floating-point values.
struct SIMD2Storage
Storage for a vector of two floating-point values.
struct SIMD32Storage
Storage for a vector of 32 floating-point values.
struct SIMD4Storage
Storage for a vector of four floating-point values.
struct SIMD64Storage
Storage for a vector of 64 floating-point values.
struct SIMD8Storage
Storage for a vector of eight floating-point values.
Typealiases
Type members
init(
) init(Double
) Creates a new instance initialized to the given value.
init(Float
) Creates a new instance that approximates the given value.
init?(Substring
) init?<S>(S
) Creates a new instance from the given string.
init(Int
) init(Float16
) Creates a new instance that approximates the given value.
init<Source>(Source
) init(bitPattern: UInt64
) Creates a new value with the given bit pattern.
init?(exactly: Double
) Creates a new instance initialized to the given value, if it can be represented without rounding.
init?(exactly: Float
) Creates a new instance initialized to the given value, if it can be represented without rounding.
init?(exactly: Float16
) Creates a new instance initialized to the given value, if it can be represented without rounding.
init?<Source>(exactly: Source
) init(floatLiteral: Double
) init(from: any Decoder
) throws init(integerLiteral: Int64
) init(nan: Double.RawSignificand, signaling: Bool
) Creates a NaN (“not a number”) value with the specified payload.
init(sign: FloatingPointSign, exponent: Int, significand: Double
) init(sign: FloatingPointSign, exponentBitPattern: UInt, significandBitPattern: UInt64
) init(signOf: Double, magnitudeOf: Double
) static var exponentBitCount: Int
static var greatestFiniteMagnitude: Double
static var infinity: Double
static var leastNonzeroMagnitude: Double
static var leastNormalMagnitude: Double
static var nan: Double
static var pi: Double
static var signalingNaN: Double
static var significandBitCount: Int
static var ulpOfOne: Double
The unit in the last place of 1.0.
static func * (lhs: Double, rhs: Double
) -> Double static func *= (lhs: inout Double, rhs: Double
) static func + (lhs: Double, rhs: Double
) -> Double static func += (lhs: inout Double, rhs: Double
) static func - (x: Double
) -> Double static func - (lhs: Double, rhs: Double
) -> Double static func -= (lhs: inout Double, rhs: Double
) static func / (lhs: Double, rhs: Double
) -> Double static func /= (lhs: inout Double, rhs: Double
)
Instance members
var binade: Double
var bitPattern: UInt64
The bit pattern of the value’s encoding.
var customMirror: Mirror
A mirror that reflects the
Double
instance.var description: String
A textual representation of the value.
var exponent: Int
var exponentBitPattern: UInt
var isCanonical: Bool
var isFinite: Bool
var isInfinite: Bool
var isNaN: Bool
var isNormal: Bool
var isSignalingNaN: Bool
var isSubnormal: Bool
var isZero: Bool
var magnitude: Double
var nextUp: Double
var sign: FloatingPointSign
var significand: Double
var significandBitPattern: UInt64
var significandWidth: Int
var ulp: Double
func addProduct(Double, Double
) func advanced(by: Double
) -> Double func distance(to: Double
) -> Double func encode(to: any Encoder
) throws Encodes this value into the given encoder.
func formRemainder(dividingBy: Double
) func formSquareRoot(
) func formTruncatingRemainder(dividingBy: Double
) func hash(into: inout Hasher
) func isEqual(to: Double
) -> Bool func isLess(than: Double
) -> Bool func isLessThanOrEqualTo(Double
) -> Bool func negate(
) func round(FloatingPointRoundingRule
) func write<Target>(to: inout Target
)
Show obsolete interfaces (1)
Hide obsolete interfaces
var customPlaygroundQuickLook: _PlaygroundQuickLook
A custom playground Quick Look for the
Double
instance.