Skip to content

This Python script provides a simple command-line interface for converting binary numbers to decimal and decimal numbers to binary. The script is designed to be used with the command line, allowing users to easily convert between binary and decimal representations.

Notifications You must be signed in to change notification settings

Derastephh/Binary-Decimal-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Binary-Decimal-converter

This Python script provides a simple command-line interface for converting binary numbers to decimal and decimal numbers to binary. The script is designed to be used with the command line, allowing users to easily convert between binary and decimal representations.

Usage:

Convert binary to decimal: python bin_dec_conv.py -b 110111
Convert decimal to binary: python bin_dec_conv.py -d 334

You can use the --help command to see information about the available options:

                                                                      python bin_dec_conv.py --help

Features:

Accepts command-line arguments for binary and decimal conversion.
Uses the argparse module for robust argument parsing.
Organized into modular functions for binary to decimal and decimal to binary conversion.

Feel free to use, modify, and contribute to this project!

About

This Python script provides a simple command-line interface for converting binary numbers to decimal and decimal numbers to binary. The script is designed to be used with the command line, allowing users to easily convert between binary and decimal representations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages