Skip to content

Commit 143764d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8704157 commit 143764d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: maths/base_neg2_conversion.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import doctest
2+
3+
24
def decimal_to_negative_base_2(n):
35
"""
46
This function returns the number negative base 2 of the decimal number of the input data.
@@ -33,5 +35,6 @@ def decimal_to_negative_base_2(n):
3335

3436
return int(ans)
3537

38+
3639
if __name__ == "__main__":
3740
doctest.testmod()

0 commit comments

Comments
 (0)