significandWidth
var significandWidth: Int { get }var significandWidth: Int { get }import Swift@frozen struct FloatA single-precision, floating-point value type.
@frozen struct IntA signed integer value type.
init() init(_ other: Float) Creates a new instance initialized to the given value.
init(_ other: Double) Creates a new instance that approximates the given value.
init?(_ text: Substring) init?<S>(_ text: S) where S : StringProtocol Creates a new instance from the given string.
init(_ v: Int) init(_ other: Float16) Creates a new instance that approximates the given value.
init<Source>(_ value: Source) where Source : BinaryInteger init(bitPattern: UInt32) Creates a new value with the given bit pattern.
init?(exactly other: Double) Creates a new instance initialized to the given value, if it can be represented without rounding.
init?(exactly other: Float) Creates a new instance initialized to the given value, if it can be represented without rounding.
init?(exactly other: Float16) Creates a new instance initialized to the given value, if it can be represented without rounding.
init?<Source>(exactly value: Source) where Source : BinaryInteger init(floatLiteral value: Float) init(from decoder: any Decoder) throws init(integerLiteral value: Int64) init(nan payload: Float.RawSignificand, signaling: Bool) Creates a NaN (“not a number”) value with the specified payload.
init(sign: FloatingPointSign, exponent: Int, significand: Float) init(sign: FloatingPointSign, exponentBitPattern: UInt, significandBitPattern: UInt32) init(signOf sign: Float, magnitudeOf mag: Float) static var exponentBitCount: Int { get }static var greatestFiniteMagnitude: Float { get }static var infinity: Float { get }static var leastNonzeroMagnitude: Float { get }static var leastNormalMagnitude: Float { get }static var nan: Float { get }static var pi: Float { get }static var signalingNaN: Float { get }static var significandBitCount: Int { get }static var ulpOfOne: Float { get }The unit in the last place of 1.0.
var binade: Float { get }var bitPattern: UInt32 { get }The bit pattern of the value’s encoding.
var customMirror: Mirror { get }A mirror that reflects the Float instance.
var debugDescription: String { get }A textual representation of the value, suitable for debugging.
var description: String { get }A textual representation of the value.
var exponent: Int { get }var exponentBitPattern: UInt { get }var isCanonical: Bool { get }var isFinite: Bool { get }var isInfinite: Bool { get }var isNaN: Bool { get }var isNormal: Bool { get }var isSignalingNaN: Bool { get }var isSubnormal: Bool { get }var isZero: Bool { get }var magnitude: Float { get }var nextUp: Float { get }var sign: FloatingPointSign { get }var significand: Float { get }var significandBitPattern: UInt32 { get }var ulp: Float { get }static func * (lhs: Float, rhs: Float) -> Float static func *= (lhs: inout Float, rhs: Float) static func + (lhs: Float, rhs: Float) -> Float static func += (lhs: inout Float, rhs: Float) static func - (x: Float) -> Float static func - (lhs: Float, rhs: Float) -> Float static func -= (lhs: inout Float, rhs: Float) static func / (lhs: Float, rhs: Float) -> Float static func /= (lhs: inout Float, rhs: Float) mutating func addProduct(_ lhs: Float, _ rhs: Float) func advanced(by amount: Float) -> Float func distance(to other: Float) -> Float func encode(to encoder: any Encoder) throws Encodes this value into the given encoder.
mutating func formRemainder(dividingBy other: Float) mutating func formSquareRoot() mutating func formTruncatingRemainder(dividingBy other: Float) func hash(into hasher: inout Hasher) func isEqual(to other: Float) -> Bool func isLess(than other: Float) -> Bool func isLessThanOrEqualTo(_ other: Float) -> Bool mutating func negate() mutating func round(_ rule: FloatingPointRoundingRule) func write<Target>(to target: inout Target) where Target : TextOutputStream @frozen struct SIMD16StorageStorage for a vector of 16 floating-point values.
@frozen struct SIMD2StorageStorage for a vector of two floating-point values.
@frozen struct SIMD32StorageStorage for a vector of 32 floating-point values.
@frozen struct SIMD4StorageStorage for a vector of four floating-point values.
@frozen struct SIMD64StorageStorage for a vector of 64 floating-point values.
@frozen struct SIMD8StorageStorage for a vector of eight floating-point values.
typealias Exponent = Inttypealias Magnitude = Floattypealias RawSignificand = UInt32typealias SIMDMaskScalar = Int32var customPlaygroundQuickLook: _PlaygroundQuickLook { get }A custom playground Quick Look for the Float instance.