Skip to content

Program to convert a number from one base to another. (buggy program)

License

Notifications You must be signed in to change notification settings

synacktraa/Base-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base Converter

A CLI based program to convert number from one base to another.


can't work with number greater than 32 bits, will be making new program in Golang to work with larger values.


Help:

basecon -h

Output:


Usage: basecon <opt> <value>
|CLI options|:-
        -d - Converts the given value into integer value.
        -b - Converts the given value into binary value.
        -o - Converts the given value into octal value.
        -x - Converts the given value into hexadecimal value.

Examples:

Bin to Hex ↴

basecon -x 0b1111

Hex to Dec ↴

basecon -d 0x2F

Dec to Oct ↴

basecon -o 47

Oct to Bin ↴

basecon -b 0o17

Note: only works till UINT_MAX value (will be buffing it soon.)

About

Program to convert a number from one base to another. (buggy program)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published