temperature

Temperature units and values

Source:
temperature.scala
class Object
trait Matchable
class Any

Type members

Classlikes

Types

final type Celsius

Celsius degree, aka Centigrade

Celsius degree, aka Centigrade

Source:
temperature.scala
final type Fahrenheit

Fahrenheit degree

Fahrenheit degree

Source:
temperature.scala
final type Temperature[V, U] = DeltaQuantity[V, U, Kelvin]

A temperature value

A temperature value

Type parameters:
U

a temperature unit type, having base unit coulomb.units.si.Kelvin

V

the underlying value type

Source:
temperature.scala

Givens

Givens

given ctx_unit_Celsius: DeltaUnit[Celsius, Kelvin, 27315 / 100, "celsius", "°C"]
given ctx_unit_Fahrenheit: DeltaUnit[Fahrenheit, 5 / 9 * Kelvin, 45967 / 100, "fahrenheit", "°F"]

Extensions

Extensions

extension [V](v: V)

Lift a raw value to a Temperature

Lift a raw value to a Temperature

Type parameters:
U

the temperature unit type to use, having base unit coulomb.units.si.Kelvin

Returns:

a Temperature object

Example:
// the freezing point of water on the Celsius scale
val freeze = (0.0).withTemperature[Celsius]
Source:
temperature.scala

Exports

Defined exports

final type Kelvin = Kelvin
Exported from si$
Exported from si
Source:
si.scala