DegToRad(degrees)
Last updated July 18, 2001
Version: 1 | Requires: CF5 | Library: MathLib
Description:
Converts degrees to radians.
Return Values:
Returns a simple value
Example:
<CFSET n=45>
<CFOUTPUT>
Given n=#n#
#n# degrees = #DegToRad(n)# radians
</CFOUTPUT>
Parameters:
Name | Description | Required |
---|---|---|
degrees | Angle (in degrees) you want converted to radians. | Yes |
Full UDF Source:
/**
* Converts degrees to radians.
*
* @param degrees Angle (in degrees) you want converted to radians.
* @return Returns a simple value
* @author Rob Brooks-Bilson (rbils@amkor.com)
* @version 1.0, July 18, 2001
*/
function DegToRad(degrees)
{
Return (degrees*(Pi()/180));
}
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