radToDeg function

double radToDeg(
  1. num rad
)

Convert radians to degrees.

Implementation

double radToDeg(num rad) => rad * (180.0 / math.pi);