Float16
A half-precision (16-bit), floating-point value type.
Declaration
@frozen struct Float16Overview
On macOS, Float16 is only available when targeting Apple silicon. On other supported platforms, Float16 is available for all architectures. If the specified target supports 16-bit floating point arithmetic directly, those instructions will be used; otherwise Float16 arithmetic will be emulated by the swift compiler and runtime.
Topics
Initializers
init()init(_:)init(_:)init(bitPattern:)init(exactly:)init(exactly:)init(exactly:)init(nan:signaling:)
Instance Properties
Default Implementations
AdditiveArithmetic ImplementationsAtomicRepresentable ImplementationsBinaryFloatingPoint ImplementationsComparable ImplementationsCustomDebugStringConvertible ImplementationsCustomStringConvertible ImplementationsDecodable ImplementationsEncodable ImplementationsEquatable ImplementationsExpressibleByFloatLiteral ImplementationsExpressibleByIntegerLiteral ImplementationsFloatingPoint ImplementationsHashable ImplementationsLosslessStringConvertible ImplementationsNumeric ImplementationsOperationParameter ImplementationsSIMDScalar ImplementationsSignedNumeric ImplementationsStrideable ImplementationsTextOutputStreamable Implementations