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

handle round(x; base=...) #28199

Merged
merged 1 commit into from
Jul 23, 2018
Merged

handle round(x; base=...) #28199

merged 1 commit into from
Jul 23, 2018

Conversation

simonbyrne
Copy link
Contributor

Fixes #28160.

throw(MethodError(round, (x,r)))
else
round(x,r)
# or throw(ArgumentError("`round` cannot use `base` argument without `digits` or `sigdigits` arguments."))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

decision needed here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although specifying base without digits or sigdigits does not make much sense, I don't see any reason for disallowing it. The desired result is pretty unambiguous, after all.

@simonbyrne simonbyrne added the status:triage This should be discussed on a triage call label Jul 20, 2018
@simonbyrne simonbyrne closed this Jul 23, 2018
@simonbyrne simonbyrne reopened this Jul 23, 2018
@JeffBezanson
Copy link
Sponsor Member

If it doesn't break anything let's just merge this now.

@simonbyrne simonbyrne merged commit ce9bc6c into master Jul 23, 2018
@simonbyrne simonbyrne deleted the sb/rounding-keywords branch July 23, 2018 21:37
@JeffBezanson JeffBezanson removed the status:triage This should be discussed on a triage call label Jul 23, 2018
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

Successfully merging this pull request may close these issues.

3 participants