Commit f22149d
committed
Remove absolute tolerance in floating-point comparison
The comparison of the max excess `take_from[1]` and `deficit` against
zero was initially done using absolute tolerance. However, as both
values are then compared against each other and known to be away from
zero, the absolute tolerance becomes unnecessary. The relative tolerance,
which is defined by default as 1e-09, is sufficient for this comparison.
Signed-off-by: Daniel Zullo <[email protected]>1 parent 1d45fc9 commit f22149d
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
408 | | - | |
409 | | - | |
| 407 | + | |
410 | 408 | | |
411 | 409 | | |
412 | 410 | | |
| |||
0 commit comments