CFLib.org – Common Function Library Project

MilesToKilometers(miles)

Last updated September 17, 2001

author

Joshua Licht

Version: 1 | Requires: CF5 | Library: ScienceLib

Description:
Converts miles to kilometers.

Return Values:
Returns a numeric value.

Example:

<CFSET m=31.9>
<CFOUTPUT>
Given m=#m#<BR>
#m# miles = #MilesToKilometer(M)# kilometers.
</CFOUTPUT>

Parameters:

Name Description Required
miles The number of miles you want converted to kilometers. Yes

Full UDF Source:

/**
 * Converts miles to kilometers.
 * 
 * @param miles      The number of miles you want converted to kilometers. 
 * @return Returns a numeric value. 
 * @author Joshua Licht (jlicht5@hotmail.com) 
 * @version 1.0, September 17, 2001 
 */
function MilesToKilometer(Miles)
{
  Return Miles * 1.609;
}

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

Created by Raymond Camden / Design by Justin Johnson