Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ decimal_to_binary.py
File
decimal_to_binary.py
conversions/decimal_to_binary.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"Convert a Decimal Number to a Binary Number."
""
2
3
4
def
decimal_to_binary_iterative(num: int) -> str:
Callers
nothing calls this directly
Calls
1
decimal_to_binary_recursive
Function · 0.85
Tested by
no test coverage detected