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.
_check_and_convert_maxiters
1 parent 29309e8 commit 15e4354Copy full SHA for 15e4354
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