degrees(x: number) → f64

Category: [math](builtinsmath)_

Convert an angle from radians to degrees.

ParameterTypeDescriptionRemarks
xnumberThe input value (any number, widened to f64).
returnsf64The result, as an f64.
wcl
degrees(pi())   // convert π radians to degrees → 180.0