CFLib.org – Common Function Library Project

NauticalMilesToKilometers(NauticalMiles)

Last updated March 18, 2002

author

Tom Nunamaker

Version: 1 | Requires: CF5 | Library: MathLib

Description:
Converts nautical miles to Kilometers.

Return Values:
Returns a numeric value.

Example:

<CFSET nm=53.9956803456>

<CFOUTPUT>
Given nm=#nm#<BR>
#nm# Nautical Mile(s) = #NauticalMilesToKilometers(nm)# Kilometers. <br>
</CFOUTPUT>

Parameters:

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

Full UDF Source:

/**
 * Convert Nautical Miles to Kilometers.
 * NOTE: 1852 meters has been adopted as the international nautical mile (6076.11549 feet)
 * 
 * @param NauticalMiles 	 The number of nautical miles you want converted to kilometers. 
 * @return Returns a numeric value. 
 * @author Tom Nunamaker (tom@toshop.com) 
 * @version 1, March 18, 2002 
 */
function NauticalMilesToKilometers(NauticalMiles){
  return NauticalMiles * 1.852;
}
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