Skip to content

Commit 95161a0

Browse files
committed
Fix: Issue TheAlgorithms#9588
1 parent b5fb9f5 commit 95161a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

maths/base_neg2_conversion.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import doctest
2-
def decimal_to_negative_base_2(n):
2+
def decimal_to_negative_base_2(n: int) -> int:
33
"""
44
This function returns the number negative base 2
55
of the decimal number of the input data.
@@ -34,6 +34,5 @@ def decimal_to_negative_base_2(n):
3434

3535
return int(ans)
3636

37-
3837
if __name__ == "__main__":
3938
doctest.testmod()

0 commit comments

Comments
 (0)