Common functions to work with and convert metric and imperial temperatures. More...
Functions | |
std::string | celsiusString (const CELSIUS c) |
Format the given temperature as a string (Celsius). More... | |
std::string | fahrenheitString (const FAHRENHEIT f) |
Format the given temperature as a string (Fahrenheit). More... | |
static CELSIUS | toCelsius (const FAHRENHEIT f) |
Convert the given value from Fahrenheit to a Celsius value. E.g., 32.0 F (freezing) converts to zero C. More... | |
static FAHRENHEIT | toFahrenheit (const CELSIUS c) |
Convert the given value from Celsius to a Fahrenheit value. E.g., zero C (freezing) converts to 32.0 F. More... | |
Common functions to work with and convert metric and imperial temperatures.
std::string Lox::Temperature::celsiusString | ( | const CELSIUS | c | ) |
Format the given temperature as a string (Celsius).
References Lox::Numbers::format().
std::string Lox::Temperature::fahrenheitString | ( | const FAHRENHEIT | f | ) |
Format the given temperature as a string (Fahrenheit).
References Lox::Numbers::format().
|
inlinestatic |
Convert the given value from Fahrenheit to a Celsius value. E.g., 32.0 F (freezing) converts to zero C.
|
inlinestatic |
Convert the given value from Celsius to a Fahrenheit value. E.g., zero C (freezing) converts to 32.0 F.