SQL Server FURLONGS Function
Updated 2023-11-09 14:09:01.017000
Description
Use the scalar function FURLONGS to convert from fathoms, feet, furlongs, inches, meters, miles, nautical miles, pica, points or yards to furlongs.
Syntax
SELECT [westclintech].[wct].[FURLONGS] (
<@Length, float,>
,<@From_scale, nvarchar(4000),>)
Arguments
@Length
is any real number. @Length 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 @Length. @From_scale must be a valid value as specified in length unit representations. @From_scale must be of a data type that is implicitly convertible to varchar.
Return Type
float
Remarks
The following table is a representation of the conversion of one of the length units of measure into furlongs:
| column 1 | column 2 |
|---|---|
| inches | 0.000126262626 |
| feet | 0.001515151520 |
| yards | 0.004545454550 |
| meters | 0.004970969540 |
| fathoms | 0.009090909090 |
| furlongs | 1.000000000000 |
| miles | 8.000000000000 |
| nautical miles | 9.206235580000 |
| pica | 0.000021043771 |
| points | 0.0000018 |
Conversion of meters includes all the standard prefixes with kilo representing 1,000 and yocto representing 10E-24.
Examples
select wct.FURLONGS(100, 'yd');
Here is the result set.
| column 1 |
|---|
| 0.454545454545455 |