Skip to content

Commit d8c0514

Browse files
Update decimal_to_fraction.py
1 parent ef8ec43 commit d8c0514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/decimal_to_fraction.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def decimal_to_fraction(decimal: float | str) -> tuple[int, int]:
2323
>>> decimal_to_fraction(0.125)
2424
(1, 8)
2525
>>> decimal_to_fraction(1000000.25)
26-
(4000001, 4000)
26+
(4000001, 4)
2727
>>> decimal_to_fraction(1.3333)
2828
(13333, 10000)
2929
>>> decimal_to_fraction("1.23e2")

0 commit comments

Comments
 (0)