Skip to content

Commit d15f342

Browse files
committed
Fix test fail
1 parent a899aee commit d15f342

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gfloat/round.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ def round_float(
123123
)
124124

125125
should_round_away = d > srbits
126-
case RoundMode.StochasticFastest:
127-
should_round_away = delta > (0.5 + srbits) * 2.0**-srnumbits
128126
case RoundMode.StochasticFast:
127+
should_round_away = delta > (0.5 + srbits) * 2.0**-srnumbits
128+
case RoundMode.StochasticFastest:
129129
should_round_away = delta > srbits * 2.0**-srnumbits
130130

131131
if should_round_away:

0 commit comments

Comments
 (0)