Skip to content

Latest commit

 

History

History
83 lines (57 loc) · 1.92 KB

README.md

File metadata and controls

83 lines (57 loc) · 1.92 KB

Logo

Description

baseconv is a command-line utility that converts numbers between different numerical bases, including binary, decimal, hexadecimal, and octal.

Features

  • Input can be in any base including iregular ones eg: base 3 up to base 32
  • Output converstion can be to all regular bases
  • Output can be customized
  • Cross platform
  • Quick and responsive
  • Includes a man page as well as a --help flag to demonstrate how to build a command
  • Includes an installation bash script to allow you to use the command anywhere on your computer
  • Negative number support
  • Floating point numbers support

Installation

Install baseconv auto installation script via

 $ sudo ./install.sh

Usage/Examples

$ baseconv -bin 101011 --dho
dec= 43
hex= 2b
oct= 53

this command will interpret 1010111 in binary and output the result in decimal then hexadecimal then octal

$ baseconv -hex FE,CD --a
bin= 11111110.11001101
dec= 254.801
hex= FE.CD
oct= 376.632

this command will interpret FE,CD in hexadecimal and output the result in all common bases

Documentation

for documentation use

$ baseconv --help

or alternatively

$ man baseconv

Roadmap

  • Add colored output to distinguish number from sign

Used By

This project orginally created so I can cheat through the assignements so I guess I can quote my university lmafo:

Contributing

Visit the project's GitHub page for contributions and bug reports: baseconv Contribute to development and help improve the utility..

Author

written by @TensorPhobia

License

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.