---
title: reciprocal()
framework: healthkit
role: symbol
role_heading: Instance Method
path: healthkit/hkunit/reciprocal()
---

# reciprocal()

Returns a complex unit representing the unit’s reciprocal.

## Declaration

```swift
func reciprocal() -> HKUnit
```

## Return Value

Return Value A complex unit that is the reciprocal of the unit the method was called on.

## Discussion

Discussion This method creates a new, complex unit by dividing 1 by the unit the method was called on. This is often only one step in a series of operations. For example, you can use this method to create a meters-per-second unit, as shown below.

## See Also

### Related Documentation

- [init(from:)](healthkit/hkunit/init(from:)-9qont.md)

### Performing unit math

- [unitMultiplied(by:)](healthkit/hkunit/unitmultiplied(by:).md)
- [unitDivided(by:)](healthkit/hkunit/unitdivided(by:).md)
- [unitRaised(toPower:)](healthkit/hkunit/unitraised(topower:).md)
