<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHID",
  "identifier" : "/documentation/CoreHID/HIDElement/unitExponent",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core HID"
    ],
    "preciseIdentifier" : "s:7CoreHID10HIDElementV12unitExponents4Int8VSgvp"
  },
  "title" : "unitExponent"
}
-->

# unitExponent

The calculated exponent for this element.

```
var unitExponent: Int8?
```

## Discussion

Some items in the report descriptor have exponent codes associated with them. The code specifies the exponent that should be applied to the scaled and shifted logical value to calculate the physical value. The value here represents the actual exponent value, calculated from the code specified in the report descriptor.

---

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)