RANKINE
Updated: 01 December 2008
Use RANKINE to convert from Celsius, Fahrenheit, Kelvin, or Rankine to Rankine.
Syntax
SELECT [westclintech].[wct].[RANKINE] (
<@Temperature, float,>
,<@From_scale, nvarchar(4000),>)
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 Types
float
Remarks
· RANNKINE is calculated according the following formula:
°R = (°C + 273.15) * 9 / 5
°R = °F + 459.67
°R = °K * 9 / 5
Example
select wct.RANKINE(100, 'C')
Here is the result set
----------------------
671.67
(1 row(s) affected)