---
title: "unitMultiplied(by:)"
framework: healthkit
role: symbol
role_heading: Instance Method
path: "healthkit/hkunit/unitmultiplied(by:)"
---

# unitMultiplied(by:)

Creates a complex unit by multiplying the receiving unit with another unit.

## Declaration

```swift
func unitMultiplied(by unit: HKUnit) -> HKUnit
```

## Parameters

- `unit`: The unit to be multiplied.

## Return Value

Return Value A new, complex unit.

## Discussion

Discussion You can create a complex unit by multiplying two units together. For example, you could create a foot-pound unit by multiplying a foot unit by a pound unit as shown below.

## See Also

### Related Documentation

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

### Performing unit math

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