<!--
{
  "availability" : [
    "driverkit: 19.0.0 -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HIDDriverKit",
  "identifier" : "/documentation/HIDDriverKit/IOHIDElement/getUnitExponent",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HIDDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOHIDElement@F@getUnitExponent#"
  },
  "title" : "getUnitExponent"
}
-->

# getUnitExponent

Returns the exponent that you use to interpret the element’s value.

```
virtual uint32_t getUnitExponent();
```

## Return Value

Returns the element’s unit exponent. The unit exponent value is defined in the USB HID spec.

---

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)