Logo

RANKINE

Updated 2023-11-09 15:20:29.377000

Syntax

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

Description

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

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

RANKINE is calculated according the following formula:R° = (C° + 273.15) * 9 / 5R° = F° + 459.67R° = K° * 9 / 5

Examples

select wct.RANKINE(100, 'C');

Here is the result set.

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