Thanks. I will probably just use 1pi when needed...Archie
On Wednesday, October 22, 2014 4:27:21 PM UTC-4, Arch Call wrote:
>
> 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
>