We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 29309e8 + 15e4354 commit 870eea8Copy full SHA for 870eea8
src/utils.jl
@@ -40,7 +40,7 @@ function _check_and_convert_maxiters(maxiters)
40
if !(isnothing(maxiters)) && maxiters <= 0.0
41
error("The number of maxiters has to be a non-negative and non-zero number.")
42
elseif !(isnothing(maxiters))
43
- return convert(Int, maxiters)
+ return convert(Int, round(maxiters))
44
end
45
46
0 commit comments