INCHES
Updated 2023-11-09 14:09:54.877000
Syntax
SELECT [westclintech].[wct].[INCHES] (
<@Length, float,>
,<@From_scale, nvarchar(4000),>)
Description
Use the scalar function INCHES to convert from fathoms, feet, furlongs, inches, meters, miles, nautical miles, pica, points or yards to inches.
Arguments
@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.
@Length
is any real number. @Length is an expression of type float or of a type that can be implicitly converted to float.
Return Type
float
Remarks
The following table is a representation of the conversion of one of the length units of measure into inches:
{"columns":[{"field":"column 1"},{"field":"column 2","headerClass":"ag-right-aligned-header","cellClass":"ag-right-aligned-cell"}],"rows":[{"column 1":"inches","column 2":"1.0000000"},{"column 1":"feet","column 2":"12.0000000"},{"column 1":"yards","column 2":"36.0000000"},{"column 1":"meters","column 2":"39.3700787"},{"column 1":"fathoms","column 2":"72.0000000"},{"column 1":"furlongs","column 2":"7920.0000000"},{"column 1":"miles","column 2":"63360.0000000"},{"column 1":"nautical miles","column 2":"72913.3858000"},{"column 1":"pica","column 2":"0.1666667"},{"column 1":"points","column 2":"0.0138889"}]}
Conversion of meters includes all the standard prefixes with kilo representing 1,000 and yocto representing 10E-24.
Examples
select wct.inches(100, 'yd');
Here is the result set.
{"columns":[{"field":"column 1","headerClass":"ag-right-aligned-header","cellClass":"ag-right-aligned-cell"}],"rows":[{"column 1":"3600"}]}