Structure

Float

A single-precision, floating-point value type.

Symbols

Initializers

init()

Creates a value initialized to zero.

init(NSNumber)init(CGFloat)init(UInt8)init(Int32)init(UInt)
init(Double)

Creates a new instance that approximates the given value.

init(Int64)init(UInt64)init(Int8)
init?(String)

Creates a new instance from the given string.

init(Float80)

Creates a new instance that approximates the given value.

init(Int)init(UInt16)init(UInt32)
init(Float)

Creates a new instance initialized to the given value.

init(Int16)
init(bitPattern: UInt32)

Creates a new value with the given bit pattern.

init?(exactly: Float)

Creates a new instance initialized to the given value, if it can be represented without rounding.

init?(exactly: Double)

Creates a new instance initialized to the given value, if it can be represented without rounding.

init?(exactly: Float80)

Creates a new instance initialized to the given value, if it can be represented without rounding.

init?(exactly: UInt8)init?(exactly: Int8)init?(exactly: UInt)init?(exactly: UInt64)init?(exactly: UInt32)init?(exactly: Int16)init?(exactly: Int64)init?(exactly: Int)init?(exactly: Int32)init?(exactly: UInt16)
init(floatLiteral: Float)

Creates a new value from the given floating-point literal.

init(integerLiteral: Int64)

Creates a new value from the given integer literal.

init(nan: 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)

Type Methods