bin(num). convert ZERO and negative decimal numbers to binary. (#1093) · coderjack/algorithms-in-python@e313141 · GitHub
Skip to content

Commit e313141

Browse files
syedwaleedhydercclauss
authored andcommitted
bin(num). convert ZERO and negative decimal numbers to binary. (TheAlgorithms#1093)
* bin(num) can convert ZERO and negative decimal numbers to binary. Consistent with built-in python bin(x) function. * bin(num) can convert ZERO and negative decimal numbers to binary. Consistent with built-in python bin(x) function. * Added doctests. bin(num) can convert ZERO and negative decimal numbers to binary. Consistent with built-in python bin(x) function. * Added doctests. bin(num) can convert ZERO and negative decimal numbers to binary. Consistent with built-in python bin(x) function. * Added doctests. bin(num) can convert ZERO and negative decimal numbers to binary. Consistent with built-in python bin(x) function. * doctests still failing. * Doctests added.
1 parent 9c0cbe3 commit e313141

1 file changed

Lines changed: 46 additions & 13 deletions

File tree

conversions/decimal_to_binary.py

Lines changed: 46 additions & 13 deletions

0 commit comments

Comments
 (0)