Skip to content

A python script to convert any base to any base without native function.

Notifications You must be signed in to change notification settings

ZKAW/Base-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Base converter

A python script to convert any base to any base.

This script use native modules BUT it doesn't use native functions.
It means that it uses a mathematical approach to convert.

How to download:

  • git clone https://github.com/ZKAW/Base-Converter

Installation:

  • Doesn't need any additional packages, works with native modules

Usage:

  • python3 base_converter.py

-> You will be prompted for the number or letter to convert,
Then for the input base (in which base the number to convert is),
And, for the output base (in which base the number should be converted).

or

  • python3 base_converter.py <number or letter to convert> <input_base> <output_base>

-> For a command line arguments usage.
Exemple: python3 base_converter.py 1100 2 10 -> Output will be 12
Exemple: python3 base_converter.py B 16 10 -> Output will be 11

If you liked it, you can show me your support in my github page :)