---
title: Float16
framework: swift
role: symbol
role_heading: Structure
path: swift/float16
---

# Float16

A half-precision (16-bit), floating-point value type.

## Declaration

```swift
@frozen struct Float16
```

## Overview

Overview 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()](swift/float16/init().md)
- [init(_:)](swift/float16/init(_:)-5x2si.md)
- [init(_:)](swift/float16/init(_:)-77b3g.md)
- [init(bitPattern:)](swift/float16/init(bitpattern:).md)
- [init(exactly:)](swift/float16/init(exactly:)-27ijx.md)
- [init(exactly:)](swift/float16/init(exactly:)-4hyr3.md)
- [init(exactly:)](swift/float16/init(exactly:)-8rmd7.md)
- [init(nan:signaling:)](swift/float16/init(nan:signaling:).md)

### Instance Properties

- [bitPattern](swift/float16/bitpattern.md)

### Default Implementations

- [AdditiveArithmetic Implementations](swift/float16/additivearithmetic-implementations.md)
- [AtomicRepresentable Implementations](swift/float16/atomicrepresentable-implementations.md)
- [BinaryFloatingPoint Implementations](swift/float16/binaryfloatingpoint-implementations.md)
- [Comparable Implementations](swift/float16/comparable-implementations.md)
- [CustomDebugStringConvertible Implementations](swift/float16/customdebugstringconvertible-implementations.md)
- [CustomStringConvertible Implementations](swift/float16/customstringconvertible-implementations.md)
- [Decodable Implementations](swift/float16/decodable-implementations.md)
- [Encodable Implementations](swift/float16/encodable-implementations.md)
- [Equatable Implementations](swift/float16/equatable-implementations.md)
- [ExpressibleByFloatLiteral Implementations](swift/float16/expressiblebyfloatliteral-implementations.md)
- [ExpressibleByIntegerLiteral Implementations](swift/float16/expressiblebyintegerliteral-implementations.md)
- [FloatingPoint Implementations](swift/float16/floatingpoint-implementations.md)
- [Hashable Implementations](swift/float16/hashable-implementations.md)
- [LosslessStringConvertible Implementations](swift/float16/losslessstringconvertible-implementations.md)
- [Numeric Implementations](swift/float16/numeric-implementations.md)
- [OperationParameter Implementations](swift/float16/operationparameter-implementations.md)
- [SIMDScalar Implementations](swift/float16/simdscalar-implementations.md)
- [SignedNumeric Implementations](swift/float16/signednumeric-implementations.md)
- [Strideable Implementations](swift/float16/strideable-implementations.md)
- [TextOutputStreamable Implementations](swift/float16/textoutputstreamable-implementations.md)

## Relationships

### Conforms To

- [AdditiveArithmetic](swift/additivearithmetic.md)
- [AtomicRepresentable](synchronization/atomicrepresentable.md)
- [BNNSGraph.Builder.OperationParameter](accelerate/bnnsgraph/builder/operationparameter.md)
- [BNNSScalar](accelerate/bnnsscalar.md)
- [BinaryFloatingPoint](swift/binaryfloatingpoint.md)
- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Comparable](swift/comparable.md)
- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByFloatLiteral](swift/expressiblebyfloatliteral.md)
- [ExpressibleByIntegerLiteral](swift/expressiblebyintegerliteral.md)
- [FloatingPoint](swift/floatingpoint.md)
- [Hashable](swift/hashable.md)
- [LosslessStringConvertible](swift/losslessstringconvertible.md)
- [MLShapedArrayScalar](coreml/mlshapedarrayscalar.md)
- [MLTensorScalar](coreml/mltensorscalar.md)
- [Numeric](swift/numeric.md)
- [Plottable](charts/plottable.md)
- [PrimitivePlottableProtocol](charts/primitiveplottableprotocol.md)
- [SIMDScalar](swift/simdscalar.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SignedNumeric](swift/signednumeric.md)
- [Strideable](swift/strideable.md)
- [TextOutputStreamable](swift/textoutputstreamable.md)

## See Also

### Floating-Point Values

- [Float80](swift/float80.md)
