We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5a5043 commit f41860fCopy full SHA for f41860f
1 file changed
jepler_udecimal/__init__.py
@@ -160,7 +160,7 @@
160
161
if sys.implementation.name == "circuitpython":
162
163
- def as_integer_ratio(f):
+ def _as_integer_ratio(f):
164
m, e = _math.frexp(f)
165
m = round(m * (1 << 53))
166
e = e - 53
@@ -737,7 +737,7 @@ def from_float(cls, f):
737
sign = 0
738
else:
739
sign = 1
740
- n, d = as_integer_ratio(abs(f))
+ n, d = _as_integer_ratio(abs(f))
741
k = d.bit_length() - 1
742
coeff = str(n * 5 ** k)
743
0 commit comments