We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef8ec43 commit d8c0514Copy full SHA for d8c0514
maths/decimal_to_fraction.py
@@ -23,7 +23,7 @@ def decimal_to_fraction(decimal: float | str) -> tuple[int, int]:
23
>>> decimal_to_fraction(0.125)
24
(1, 8)
25
>>> decimal_to_fraction(1000000.25)
26
- (4000001, 4000)
+ (4000001, 4)
27
>>> decimal_to_fraction(1.3333)
28
(13333, 10000)
29
>>> decimal_to_fraction("1.23e2")
0 commit comments