Program to convert a number from one base to another. (buggy program)
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.
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.)