Skip to content

Commit

Permalink
Update _check_and_convert_maxiters to ensure rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored Oct 28, 2024
1 parent 29309e8 commit 15e4354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function _check_and_convert_maxiters(maxiters)
if !(isnothing(maxiters)) && maxiters <= 0.0
error("The number of maxiters has to be a non-negative and non-zero number.")
elseif !(isnothing(maxiters))
return convert(Int, maxiters)
return convert(Int, round(maxiters))
end
end

Expand Down

0 comments on commit 15e4354

Please sign in to comment.