DEGREES in JS
Description
JavaScript does not provide a method to convert radians to degrees of a given angle. This could be calculated using the equation:
Sample Source Pattern
Implementation example
function degress(angle){
return (180/Math.PI) * angle;
}Arguments
angle: Numeric expression in radians.
Return Type
Same data type sent through parameter as a numeric expression.
Examples
Known Issues
No issues were found.
Related EWIs
No related EWIs.
Last updated
