Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rounding pi #5952

Closed
my-little-repository opened this issue Feb 25, 2014 · 1 comment
Closed

rounding pi #5952

my-little-repository opened this issue Feb 25, 2014 · 1 comment

Comments

@my-little-repository
Copy link

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

@ihnorton
Copy link
Member

dupe of #5561

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants