Skip to content

Commit 155601c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 95161a0 commit 155601c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

maths/base_neg2_conversion.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import doctest
2+
3+
24
def decimal_to_negative_base_2(n: int) -> int:
35
"""
4-
This function returns the number negative base 2
6+
This function returns the number negative base 2
57
of the decimal number of the input data.
68
79
Args:
@@ -34,5 +36,6 @@ def decimal_to_negative_base_2(n: int) -> int:
3436

3537
return int(ans)
3638

39+
3740
if __name__ == "__main__":
3841
doctest.testmod()

0 commit comments

Comments
 (0)