PoundsToKilograms(value)
Last updated May 9, 2003
Version: 1 | Requires: ColdFusion 5 | Library: ScienceLib
Description:
Pounds to kilograms conversion.
Return Values:
Returns a number.
Example:
<cfset Kilograms = PoundsToKilograms(myvalue)>
<cfdump var="Kilograms: #Kilograms#">
Parameters:
| Name | Description | Required |
|---|---|---|
| value | Weight in pounds. | Yes |
Full UDF Source:
<cfscript>
/**
* 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;
}
</cfscript>
Search CFLib.org
Latest Additions
Tayo Akinmade added
arrayTrim
11 day(s) ago
Will Belden added
longTime
17 day(s) ago
James Sleeman added
quickSort
27 day(s) ago
Ben Forta added
GetHostAddress
30 day(s) ago
Top Rated
EksporSQLData
Rated 5.0, 16 time(s)
backupDatabase
Rated 5.0, 13 time(s)
indentXml
Rated 5.0, 10 time(s)
generateSsccAsn
Rated 5.0, 4 time(s)