PoundsToKilograms(value)
Last updated May 09, 2003
Version: 1 | Requires: CF5 | Library: ScienceLib
Description:
Pounds to kilograms conversion.
Return Values:
Returns a number.
Example:
<cfset myvalue = 215>
<cfset Kilograms = PoundsToKilograms(myvalue)>
<cfdump var="Kilograms: #Kilograms#">
Parameters:
Name | Description | Required |
---|---|---|
value | Weight in pounds. | Yes |
Full UDF Source:
/**
* Pounds to kilograms conversion.
*
* @param value Weight in pounds. (Required)
* @return Returns a number.
* @author Casey Broich (cab@pagex.com)
* @version 1, May 9, 2003
*/
function PoundsToKilograms(value) {
var t = '0';
if(value gt 0) t= value*0.4536;
return t;
}
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