Notice how the constant "pi" causes an error in rad2deg().

I would think that this is a common use case for this function.
Also notice how if it was multiplied by 1.0 and error did not happen.

This is happening in in Version 0.3.1.

...Archie


julia> pi
π = 3.1415926535897...

julia> rad2deg(pi)
ERROR: `convert` has no method matching convert(::Type{MathConst{:π}}, 
::Float64
)
 in rad2deg at math.jl:81

julia> rad2deg(1.0 * pi)
180.0

Reply via email to