Login     Register

        Contact Us     Search

XLeratorDB/engineering Online Documentation

SQL Server function to convert length to picas


PICA
 
Updated: 01 December 2008

 
Use PICA to convert from fathoms, feet, furlongs, inches, meters, miles, nautical miles, pica, points, or yards to pica.
Syntax
SELECT [westclintech].[wct].[PICA] (
  <@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 pica:
inches
6.0000000000000
feet
72.0000000000000
yards
216.0000000000000
meters
236.2204722000000
fathoms
432.0000000000000
furlongs
47520.0000000000000
miles
380160.0000000000000
nautical miles
437480.3148000000000
pica
1.0000000000000
points
0.0833333333333
 
·         Conversion of meters includes all the standard prefixes with kilo representing 1,000 and yocto representing 10E-24.
Example
 
select wct.PICA(100, 'yd')
Here is the result set
----------------------
21600
 
(1 row(s) affected)


Copyright 2008-2013 WestClinTech LLC         Privacy Policy        Terms of Service