<!--
{
  "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" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s7Float16V1doiyA2B_ABtFZ"
  },
  "title" : "/(_:_:)"
}
-->

# /(_:_:)

Returns the quotient of dividing the first value by the second, rounded
to a representable value.

```
static func / (lhs: Float16, rhs: Float16) -> Float16
```

## Parameters

`lhs`

The value to divide.

`rhs`

The value to divide `lhs` by.

## Discussion

The division operator (`/`) calculates the quotient of the division if
`rhs` is nonzero. If `rhs` is zero, the result of the division is
infinity, with the sign of the result matching the sign of `lhs`.

```
let x = 16.875
let y = x / 2.25
// y == 7.5

let z = x / 0
// z.isInfinite == true
```

The `/` operator implements the division operation defined by the 
[IEEE
754 specification](http://ieeexplore.ieee.org/servlet/opac?punumber=4610933).

---

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)