KilometersToMiles(kilometers)
Last updated September 17, 2001
Version: 1 | Requires: CF5 | Library: ScienceLib
Description:
Converts kilometers to miles.
Return Values:
Returns a numeric value.
Example:
<CFSET k=51>
<CFOUTPUT>
Given k=#k#<BR>
#k# kilometer(s) = #KilometersToMiles(K)# miles. <br>
</CFOUTPUT>
Parameters:
Name | Description | Required |
---|---|---|
kilometers | The number of kilometers you want converted to miles. | Yes |
Full UDF Source:
/**
* Converts kilometers to miles.
*
* @param kilometers The number of kilometers you want converted to miles.
* @return Returns a numeric value.
* @author Joshua Licht (jlicht5@hotmail.com)
* @version 1, September 17, 2001
*/
function KilometersToMiles(Kilometers)
{
Return Kilometers * 0.6214;
}
Search CFLib.org
Latest Additions
Raymond Camden added
QueryDeleteRows
November 04, 2017
Leigh added
nullPad
May 11, 2016
Raymond Camden added
stripHTML
May 10, 2016
Kevin Cotton added
date2ExcelDate
May 05, 2016
Raymond Camden added
CapFirst
April 25, 2016