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;
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson