Record TDegreeCelsiusUnit

Unit

Declaration

type TDegreeCelsiusUnit = record

Description

Represents the degree Celsius temperature unit (°C).

Unlike SI base units, the Celsius scale has an offset relative to the SI base unit of temperature (kelvin): T[K] = T[°C] + 273.15. The multiplication operator applies this offset conversion, so that the resulting TQuantity is always expressed in kelvin internally.

Example: var T: TQuantity := 100.0 * DegreeCelsius; // stores 373.15 K internally

Note: because of the additive offset, Celsius degrees cannot be used directly in multiplications or divisions to express temperature differences without care. For temperature differences, use kelvin directly.

Overview

Methods

Public class operator *(const AValue: double; const ASelf: TDegreeCelsiusUnit): TQuantity; inline;

Description

Methods

Public class operator *(const AValue: double; const ASelf: TDegreeCelsiusUnit): TQuantity; inline;

Converts a temperature value in degrees Celsius to a TQuantity in kelvin. Applies the offset: T[K] = AValue + 273.15. The resulting quantity has the thermodynamic temperature dimension [K].


Generated by PasDoc 1.0.4.