Record TDegreeCelsiusUnitHelper
Unit
Declaration
type TDegreeCelsiusUnitHelper = record helper for TDegreeCelsiusUnit
Description
Record helper for TDegreeCelsiusUnit providing conversion and formatting operations for temperatures expressed in degrees Celsius.
All extraction methods apply the inverse of the Celsius offset conversion, so that a quantity stored internally in kelvin is correctly displayed in °C: T[°C] = T[K] - 273.15.
All ToString and ToVerboseString methods produce output with the Celsius symbol '°C' or name 'degree Celsius' / 'degrees Celsius'.
Overview
Methods
| Public | function GetName(const Prefixes: TPrefixes): string; |
| Public | function GetPluralName(const Prefixes: TPrefixes): string; |
| Public | function GetSymbol(const Prefixes: TPrefixes): string; |
| Public | function GetValue(const AQuantity: double; const APrefixes: TPrefixes): double; |
| Public | function ToFloat(const AQuantity: TQuantity): double; |
| Public | function ToFloat(const AQuantity: TQuantity; const APrefixes: TPrefixes): double; |
| Public | function ToString(const AQuantity: TQuantity): string; |
| Public | function ToString(const AQuantity: TQuantity; APrecision, ADigits: longint; const APrefixes: TPrefixes): string; |
| Public | function ToString(const AQuantity: TQuantity; const APrefixes: TPrefixes): string; |
| Public | function ToString(const AQuantity, ATolerance: TQuantity; APrecision, ADigits: longint; const APrefixes: TPrefixes): string; |
| Public | function ToVerboseString(const AQuantity: TQuantity): string; |
| Public | function ToVerboseString(const AQuantity: TQuantity; APrecision, ADigits: longint; const APrefixes: TPrefixes): string; |
| Public | function ToVerboseString(const AQuantity: TQuantity; const APrefixes: TPrefixes): string; |
| Public | function ToVerboseString(const AQuantity, ATolerance: TQuantity; APrecision, ADigits: longint; const APrefixes: TPrefixes): string; |
Description
Methods
| Public | function GetName(const Prefixes: TPrefixes): string; |
|
Returns the singular name of the unit with the given prefix applied. For the Celsius unit this is typically Parameters
| |
| Public | function GetPluralName(const Prefixes: TPrefixes): string; |
|
Returns the plural name of the unit with the given prefix applied. For the Celsius unit this is typically Parameters
| |
| Public | function GetSymbol(const Prefixes: TPrefixes): string; |
|
Returns the symbol of the unit with the given prefix applied. For the Celsius unit this is typically Parameters
| |
| Public | function GetValue(const AQuantity: double; const APrefixes: TPrefixes): double; |
|
Returns the real scalar value scaled for the given prefix, expressed in degrees Celsius. Applies the inverse offset: Parameters
| |
| Public | function ToFloat(const AQuantity: TQuantity): double; |
|
Returns the numerical value of the real quantity expressed in degrees Celsius. Applies the inverse offset conversion: Parameters
| |
| Public | function ToFloat(const AQuantity: TQuantity; const APrefixes: TPrefixes): double; |
|
Returns the numerical value of the real quantity expressed in degrees Celsius with the given prefix applied. Parameters
| |
| Public | function ToString(const AQuantity: TQuantity): string; |
|
Returns a compact string representation of the temperature quantity in degrees Celsius. Format: Parameters
| |
| Public | function ToString(const AQuantity: TQuantity; APrecision, ADigits: longint; const APrefixes: TPrefixes): string; |
|
Returns a compact string representation of the temperature quantity with controlled precision. Parameters
| |
| Public | function ToString(const AQuantity: TQuantity; const APrefixes: TPrefixes): string; |
|
Returns a compact string representation of the temperature quantity in degrees Celsius with the given prefix applied. Parameters
| |
| Public | function ToString(const AQuantity, ATolerance: TQuantity; APrecision, ADigits: longint; const APrefixes: TPrefixes): string; |
|
Returns a compact string representation of the temperature quantity with a tolerance range. Format: Parameters
| |
| Public | function ToVerboseString(const AQuantity: TQuantity): string; |
|
Returns a verbose string representation of the temperature quantity in degrees Celsius. Format: Parameters
| |
| Public | function ToVerboseString(const AQuantity: TQuantity; APrecision, ADigits: longint; const APrefixes: TPrefixes): string; |
|
Returns a verbose string representation of the temperature quantity with controlled precision. Parameters
| |
| Public | function ToVerboseString(const AQuantity: TQuantity; const APrefixes: TPrefixes): string; |
|
Returns a verbose string representation of the temperature quantity with the given prefix. Parameters
| |
| Public | function ToVerboseString(const AQuantity, ATolerance: TQuantity; APrecision, ADigits: longint; const APrefixes: TPrefixes): string; |
|
Returns a verbose string representation of the temperature quantity with a tolerance range. Format: Parameters
| |
Generated by PasDoc 1.0.4.