Skip to content

Commit

Permalink
Fix rounding helper
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Dec 11, 2024
1 parent 47ca1fa commit 9ac9865
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adijif/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ def tround(value: float, tol: float = 1e-6) -> Union[float, int]:
return int(value)
if abs(value - round(value)) < tol:
return round(value)
return value

0 comments on commit 9ac9865

Please sign in to comment.