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

re-enable ndigits(::Bool, b) (fix #21919) #21936

Merged
merged 2 commits into from
May 18, 2017
Merged

Conversation

rfourquet
Copy link
Member

No description provided.

@@ -360,38 +360,39 @@ ndigits(x::Integer) = iszero(x) ? 1 : ndigits0z(x)
## ndigits with specified base ##

# The suffix "nb" stands for "negative base"
function ndigits0znb(n::Integer, b::Integer)
# precondition: b < -1 && !(typeof(n) <: Unsigned)
function ndigits0znb(x::Integer, b::Integer)
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity, why change the variable name?

Copy link
Member Author

Choose a reason for hiding this comment

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

Only for consistency, most ndigits methods were receiving an x... Sorry to have done two things in this PR.

Copy link
Member

Choose a reason for hiding this comment

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

Oh it's no problem, I was just wondering.

@ararslan ararslan added the maths Mathematical functions label May 18, 2017
@JeffBezanson JeffBezanson merged commit 5375620 into master May 18, 2017
@ararslan ararslan deleted the rf/ndigits-bool branch May 18, 2017 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maths Mathematical functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants