Click or drag to resize

Temperature Constructor

Constructs a Temperature with the specified units and value (rounded to the nearest 0.1 degrees).

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public Temperature(
	double value,
	TemperatureUnit unit
)

Parameters

value  Double
A temperature value, the limits of which will depend on the unit
unit  TemperatureUnit
Specifying whether the temperature is in Celsius or Fahrenheit.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is outside the limits allowed by unit.
ArgumentExceptionvalue is NaN.
See Also