Skip to content

Commit 529a611

Browse files
committed
mypy
1 parent 6661798 commit 529a611

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gfloat/printing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ def float_pow2str(v: float, min_exponent: float = -np.inf) -> str:
2828
sig = np.ldexp(x, -e)
2929
if e < min_exponent:
3030
sig = np.ldexp(sig, e - min_exponent)
31-
e = min_exponent
31+
e = int(min_exponent)
3232

33-
pow2str = f"2^{int(e):d}"
33+
pow2str = f"2^{e:d}"
3434

3535
significand = fractions.Fraction(sig)
3636
if significand == 1:

0 commit comments

Comments
 (0)