CFLib.org – Common Function Library Project

KilogramsToPounds(value)

Last updated May 9, 2003

author

Casey Broich

Version: 1 | Requires: CF5 | Library: ScienceLib

Description:
Kilograms to pounds conversion.

Return Values:
Returns a number.

Example:

<cfset myvalue = 125>
<cfset pounds  = KilogramsToPounds(myvalue)>
<cfdump var="Pounds: #pounds#">

Parameters:

Name Description Required
value Weight in kilograms. Yes

Full UDF Source:

/**
 * Kilograms to pounds conversion.
 * 
 * @param value 	 Weight in kilograms. (Required)
 * @return Returns a number. 
 * @author Casey Broich (cab@pagex.com) 
 * @version 1, May 9, 2003 
 */
function KilogramsToPounds(value) {
  var t = '0';
  if(value gt 0) t = value*2.2046;
  return t;
}
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