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

Combine signif into round, use keyword args for digits/sigdigits #26670

Merged
merged 20 commits into from
Apr 6, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove whitespace
  • Loading branch information
simonbyrne committed Mar 30, 2018
commit 3346e2af6863acf6fb8163483ba7a2d7a19fc233
2 changes: 1 addition & 1 deletion base/floatfuncs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function _round(x, r::RoundingMode, digits::Integer, sigdigits::Nothing, base)
isc = oftype(fx, base)^-digits
r = round(fx / isc, r) * isc
end

if !isfinite(r)
if digits > 0
return fx
Expand Down