MIMIN
Updated: 01 December 2008
Use MIMIN to convert from feet per hour, feet per minute, feet per second, inches per second, kilometers per hour, knots, miles per hour, miles per minute, miles per second, meters per second, meters per minute, or meters per hour to miles per minute.
Syntax
SELECT [westclintech].[wct].[MIMIN] (
<@Speed, float,>
,<@From_scale, nvarchar(4000),>)
Arguments
@Speed
is any real number. @Speed 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 @Speed. @From_scale must be a valid value as specified in speed 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 speed units of measure into miles per minute:
feet per hour
|
3.15657E-06
|
feet per minute
|
0.000189394
|
feet per second
|
0.011363636
|
inches per second
|
0.00094697
|
kilometers per hour
|
0.010356187
|
knots
|
0.019179658
|
miles per hour
|
0.016666667
|
miles per minute
|
1
|
miles per second
|
60
|
meters per second
|
0.037282272
|
meters per minute
|
0.000621371
|
meters per hour
|
1.03562E-05
|
· Conversion of meters includes all the standard prefixes with kilo representing 1,000 and yocto representing 10E-24.
Example
select wct.MIMIN(10, 'm/s')
Here is the result set
----------------------
0.372822715
(1 row(s) affected)