You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if constants could be rounded. I understand that round tries to give
a result of the same type as its argument, but its behavior seems inconsistent nonetheless, e.g.
julia> round(pi)
ERROR: no method round(MathConst{:π})
julia> round(pi,0)
3.0
The text was updated successfully, but these errors were encountered:
It would be nice if constants could be rounded. I understand that
round
tries to givea result of the same type as its argument, but its behavior seems inconsistent nonetheless, e.g.
julia> round(pi)
ERROR: no method round(MathConst{:π})
julia> round(pi,0)
3.0
The text was updated successfully, but these errors were encountered: