CFLib.org – Common Function Library Project

CelsiusToFahrenheit(celsius)

Last updated September 17, 2001
Download UDF

author

Rob Brooks-Bilson                                 Rob Brooks-Bilson

Version: 1 | Requires: ColdFusion 5 | Library: ScienceLib

 
Rated 2 time(s). Average Rating: 5.0

Description:
Converts from degrees Celsius to degrees Fahrenheit.

Return Values:
Returns a simple value

Example:

<CFSET c=100>
<CFOUTPUT>
Given c=#c#<BR>
#c# degrees Celsius = #CelsiusToFahrenheit(c)# degrees Fahrenheit
</CFOUTPUT>

Parameters:

Name Description Required
celsius Degrees Celsius to convert to degrees Fahrenheit Yes

Full UDF Source:

<cfscript>
/**
* Converts Celsius to Fahrenheit.
* Renamed from CelToFar to CelsiusToFahrenheit.
*
* @param celsius      Degrees Celsius to convert to degrees Fahrenheit
* @return Returns a simple value
* @author Rob Brooks-Bilson (rbils@amkor.com)
* @version 1, September 17, 2001
*/

function CelsiusToFahrenheit(celsius)
{
Return ((212-32)/100 * celsius + 32);
}
</cfscript>

Search CFLib.org


Latest Additions

Alan McCollough Alan McCollough added
forceBoolean
5 day(s) ago

Shawn Porter Shawn Porter added
DeMoronize
8 day(s) ago

Chris Carey Chris Carey added
readPropertiesFi...
8 day(s) ago

Randy Johnson Randy Johnson added
lastDayofWeek
11 day(s) ago

Top Rated

Barney Boisvert indentXml
Rated 5.0, 4 time(s)

James Sleeman                                     QuickSort
Rated 5.0, 3 time(s)

Nathan Dintenfass                                 queryColumnsToSt...
Rated 5.0, 3 time(s)

Kevin Pepperman generateSsccAsn
Rated 5.0, 3 time(s)

Created by Raymond Camden / Design by Justin Johnson