<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Float16",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s7Float16V"
  },
  "title" : "Float16"
}
-->

# Float16

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

```
@frozen struct Float16
```

## 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.

## Relationships

### Conforms To

[`AtomicRepresentable`](/documentation/Synchronization/AtomicRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`FloatingPoint`](/documentation/Swift/FloatingPoint)

[`Value`](/documentation/USDKit/USDPrim/Attribute/Value)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`MLShapedArrayScalar`](/documentation/CoreML/MLShapedArrayScalar)

[`Strideable`](/documentation/Swift/Strideable)

[`Escapable`](/documentation/Swift/Escapable)

[`Copyable`](/documentation/Swift/Copyable)

[`Numeric`](/documentation/Swift/Numeric)

[`BNNSScalar`](/documentation/Accelerate/BNNSScalar)

[`Decodable`](/documentation/Swift/Decodable)

[`ConvertibleFromBytes`](/documentation/Swift/ConvertibleFromBytes)

[`TextOutputStreamable`](/documentation/Swift/TextOutputStreamable)

[`Plottable`](/documentation/Charts/Plottable)

[`MetadataValue`](/documentation/USDKit/USDStage/Object/MetadataValue)

[`BinaryFloatingPoint`](/documentation/Swift/BinaryFloatingPoint)

[`Encodable`](/documentation/Swift/Encodable)

[`PrimitivePlottableProtocol`](/documentation/Charts/PrimitivePlottableProtocol)

[`USDValueProtocol`](/documentation/USDKit/USDValueProtocol)

[`Sendable`](/documentation/Swift/Sendable)

[`SignedNumeric`](/documentation/Swift/SignedNumeric)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Comparable`](/documentation/Swift/Comparable)

[`LosslessStringConvertible`](/documentation/Swift/LosslessStringConvertible)

[`SIMDScalar`](/documentation/Swift/SIMDScalar)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`ExpressibleByFloatLiteral`](/documentation/Swift/ExpressibleByFloatLiteral)

[`AdditiveArithmetic`](/documentation/Swift/AdditiveArithmetic)

[`ConvertibleToBytes`](/documentation/Swift/ConvertibleToBytes)

[`OperationParameter`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter)

[`MLTensorScalar`](/documentation/CoreML/MLTensorScalar)

[`ExpressibleByIntegerLiteral`](/documentation/Swift/ExpressibleByIntegerLiteral)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)