/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Resource } from "#models/Resource.js";
Resource.add(
  {
    tag: "datatype",
    name: "temperature",
    description: "Temperature",
    xref: "core\xA77.19.2.9",
    details: "This type represents a temperature on the Celsius scale with a resolution of 0.01\xB0C.\n  - value = (temperature in \xB0C) x 100\n  - -4\xB0C \u21D2 -400\n  - 123.45\xB0C \u21D2 12345\nThe range is constrained by absolute zero: -273.15\xB0C to 327.67\xB0C.\n### Conversion of Temperature Values for Display\nWhen converting temperature values for display manufacturers SHOULD ensure that calculations round to the nearest representable value. Particular care is needed when using integer arithmetic.\nFor example, assuming a display resolution of 0.5:\n### Sample Conversion Code\nSample code provided to ensure consistent Fahrenheit to Celsius and vice-versa conversion between devices and across vendors.\nFor degF: the value is a int8u representing 2x temperature value in Fahrenheit (to get 0.5 resolution).\nFor degC: the value is a int16s representing Celsius in 0.01 resolution as expected by the Matter format."
  }
);
//# sourceMappingURL=temperature.resource.js.map
