7 lines
171 B
JavaScript
7 lines
171 B
JavaScript
|
function radians_to_degrees(radians)
|
||
|
{
|
||
|
var pi = Math.PI;
|
||
|
return radians * (180/pi);
|
||
|
}
|
||
|
|
||
|
console.log(radians_to_degrees(0.7853981633974483));
|