We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a424b3 commit 115703eCopy full SHA for 115703e
maths/base_neg2_conversion.py
@@ -1,8 +1,7 @@
1
-import doctest
2
def decimal_to_negative_base_2(num: int) -> int:
3
"""
4
This function returns the number negative base 2
5
- of the decimal number of the input data.
+ of the decimal number of the input data.
6
7
Args:
8
int: The decimal number to convert.
@@ -36,4 +35,5 @@ def decimal_to_negative_base_2(num: int) -> int:
36
35
37
38
if __name__ == "__main__":
+ import doctest
39
doctest.testmod()
0 commit comments