---
title: percent()
framework: healthkit
role: symbol
role_heading: Type Method
path: healthkit/hkunit/percent()
---

# percent()

Returns a HealthKit unit for measuring percentages.

## Declaration

```swift
class func percent() -> Self
```

## Return Value

Return Value A HealthKit unit for measuring percentages.

## Discussion

Discussion Percent measures a value between 0.0 and 1.0. HealthKit uses percent units when measuring body fat percentage, oxygen saturation, blood alcohol content, and similar values.  Even though count and percent units are both scalar units, you cannot convert between them.

## See Also

### Constructing scalar units

- [count()](healthkit/hkunit/count().md)
