Click or drag to resize

TemperatureCelsius Method

Returns a Temperature with the specified Celsius temperature rounded to the nearest 0.1 C.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public static Temperature Celsius(
	double value
)

Parameters

value  Double
A Celsius temperature that's greater than or equal to -273 C (absolute zero) and less than or equal to 3000 C (hotter than the hottest blast furnaces). Note that the base-temperature range over which it would typically make sense to calculate degree days is much smaller than the range allowed by these limits.

Return Value

Temperature
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is less than -273 C, or greater than 3000 C.
ArgumentExceptionvalue is NaN.
See Also