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.
1 parent 722b870 commit 997152aCopy full SHA for 997152a
src/gfloat/round_ndarray.py
@@ -92,7 +92,7 @@ def round_ndarray(
92
d = delta * 2.0**srnumbits
93
floord = np.floor(d).astype(np.int64)
94
dd = d - floord
95
- drnd = floord + (dd > 0.5) + ((dd == 0.5) & ~_isodd(floord))
+ drnd = floord + (dd > 0.5) + ((dd == 0.5) & _isodd(floord))
96
97
should_round_away = drnd > srbits
98
case RoundMode.StochasticFast:
0 commit comments