Javascript Math Radian Convert to Degree

Description

Javascript Math Radian Convert to Degree


// Convert radians to degrees
Math.radToDeg = function(radians) {
    return radians*(180/Math.PI);
}

console.log(Math.radToDeg(5));/*from   www . j a  va  2 s. co m*/



PreviousNext

Related