INCHES
Updated: 01 December 2008
Use INCHES to convert from fathoms, feet, furlongs, inches, meters, miles, nautical miles, pica, points, or yards to inches.
Syntax
SELECT [westclintech].[wct].[INCHES] (
<@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 Types
float
Remarks
· The following table is a representation of the conversion of one of the length units of measure into inches:
inches
|
1.0000000
|
feet
|
12.0000000
|
yards
|
36.0000000
|
meters
|
39.3700787
|
fathoms
|
72.0000000
|
furlongs
|
7920.0000000
|
miles
|
63360.0000000
|
nautical miles
|
72913.3858000
|
pica
|
0.1666667
|
points
|
0.0138889
|
· Conversion of meters includes all the standard prefixes with kilo representing 1,000 and yocto representing 10E-24.
Example
select wct.inches(100, 'yd')
Here is the result set
----------------------
3600
(1 row(s) affected)