<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHID",
  "identifier" : "/documentation/CoreHID/HIDElement/Value/init(element:fromPhysicalValue:timestamp:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core HID",
      "CoreHID"
    ],
    "preciseIdentifier" : "s:7CoreHID10HIDElementV5ValueV7element012fromPhysicalD09timestampAESgAC_x12_Concurrency15SuspendingClockV7InstantVtcSBRzlufc"
  },
  "title" : "init(element:fromPhysicalValue:timestamp:)"
}
-->

# init(element:fromPhysicalValue:timestamp:)

Creates a HID element value from a physical value.

```
init?<FloatingPointType>(element: HIDElement, fromPhysicalValue: FloatingPointType, timestamp: SuspendingClock.Instant) where FloatingPointType : BinaryFloatingPoint
```

## Parameters

`element`

The element associated with this value.

`timestamp`

The time that the value was created.

## Discussion

The raw value and physical value are calculated; both must be valid.

---

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)