rad2deg
Convert x
from radians to degrees.
Base.Math.rad2deg
— FunctionMethods
julia> methods(rad2deg, (Any,), [Base, Base.Math, Base.MathConstants, Base.MPFR])
# 3 methods for generic function "rad2deg" from Base.Math: [1] rad2deg(z::AbstractFloat) @ math.jl:244 [2] rad2deg(z::Real) @ math.jl:260 [3] rad2deg(z::Number) @ math.jl:262
Examples
Real Numbers
julia> rad2deg(pi)
180.0
julia> rad2deg(pi/2)
90.0
julia> rad2deg.([1/6 1/4 1/3] * pi)
1×3 Matrix{Float64}:
30.0 45.0 60.0
julia> rad2deg(-0.0)
-0.0
Tips
See Also
Extended Inputs
Tech Notes
Version History
Introduced in Julia v1.0 (2018)