Skip to content

Commit f41860f

Browse files
committed
hide as_integer_ratio
1 parent c5a5043 commit f41860f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jepler_udecimal/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160

161161
if sys.implementation.name == "circuitpython":
162162

163-
def as_integer_ratio(f):
163+
def _as_integer_ratio(f):
164164
m, e = _math.frexp(f)
165165
m = round(m * (1 << 53))
166166
e = e - 53
@@ -737,7 +737,7 @@ def from_float(cls, f):
737737
sign = 0
738738
else:
739739
sign = 1
740-
n, d = as_integer_ratio(abs(f))
740+
n, d = _as_integer_ratio(abs(f))
741741
k = d.bit_length() - 1
742742
coeff = str(n * 5 ** k)
743743
else:

0 commit comments

Comments
 (0)