Logo

FAHRENHEIT

Updated 2023-11-09 15:06:56.120000

Syntax

SELECT [westclintech].[wct].[FAHRENHEIT] (
  <@Temperature, float,>
 ,<@From_scale, nvarchar(4000),>)

Description

Use the scalar function FAHRENHEIT to convert from Celsius, Kelvin or Rankine to Fahrenheit.

Arguments

@Temperature

is any real number. @Temperature is an expression of type float or of a type that can be implicitly converted to float.

@From_scale

is the description of the units for @Temperature. @From_scale must be a valid value as specified in temperature unit representations. @From_scale must be of a data type that is implicitly convertible to varchar.

Return Type

float

Remarks

FAHRENHEIT is calculated according the following formula:F° = C° * 9 / 5 + 32F° = K° * 9 / 5 - 459.67F° = R° - 459.67

Examples

select wct.FAHRENHEIT(100, 'K');

Here is the result set.

{"columns":[{"field":"column 1","headerClass":"ag-right-aligned-header","cellClass":"ag-right-aligned-cell"}],"rows":[{"column 1":"-279.67"}]}