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;
}

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