Skip to content

Commit 115703e

Browse files
committed
Fix: Issue TheAlgorithms#9588
1 parent 6a424b3 commit 115703e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maths/base_neg2_conversion.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import doctest
21
def decimal_to_negative_base_2(num: int) -> int:
32
"""
43
This function returns the number negative base 2
5-
of the decimal number of the input data.
4+
of the decimal number of the input data.
65
76
Args:
87
int: The decimal number to convert.
@@ -36,4 +35,5 @@ def decimal_to_negative_base_2(num: int) -> int:
3635

3736

3837
if __name__ == "__main__":
38+
import doctest
3939
doctest.testmod()

0 commit comments

Comments
 (0)