Constructs a Temperature with the specified units and value
(rounded to the nearest 0.1 degrees).
Namespace: DegreeDays.Api.DataAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public Temperature(
double value,
TemperatureUnit unit
)
Public Sub New (
value As Double,
unit As TemperatureUnit
)
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 See Also