Skip to content

An easy to use shell application for quick and easy number base converter How

License

Notifications You must be signed in to change notification settings

FelixDubois/c2b

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c2b

License

c2b is an easy to use shell application for quick and easy number base converter

How to build ?

To build c2b it's easy. There is 2 way of doing it.

Using the build script

./build.sh

It will juste generate the c2b executable.

Using Make

make install

It will install c2b in your /usr/local/bin folder.

How to use ?

To use c2b it's easy !

c2b [OPTIONS] NUMBER

Options

There is several options you can have access :

  • -h, --help : Print the help message
  • -b BASE : Specify the base of the output number (default : 2)
  • -B, --input-base BASE : Specify the base of the input number (default : 10)

Example

c2b 13
1101
c2b -b 16 "154"
9A
c2b -b 10 -B 16 "9A"
154

Note that the quotes are not necessary.

What I want to work on ?

  • Being able to convert bigger numbers than long long int

Foot note

I love working on this project. If you have any suggestion about new fonctionnalities dont hesitate !