|
||
---|---|---|
.idea | ||
lib | ||
COPYING | ||
Makefile | ||
README.org | ||
install.sh | ||
makefile.mk | ||
ncvt.1 | ||
ncvt.c |
README.org
nUMBER cONvERtER (ncvt)
Copyright (C) 2022-2023 mirk0dex <mirkodi.eu>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
ncvt
ncvt is a nUMBER cONvERtER that converts numbers from one base to another.
Dependencies
- a computer,
- any UNIX-like OS.
Installation
Clone the repo, cd
into its directory, compile and copy to /usr/local/bin/
and you're good to go!
If you're in a terminal emulator, run:
git clone https://git.mirkodi.eu/mirk0dex/ncvt # clone the repository
cd ncvt # cd into its dir
chmod +x ./install.sh # make install.sh executable
./install.sh # this MUST be run in a terminal # run install.sh
Alternatively, you can grab the latest GNU/Linux binary in "Releases".
Building manually
Just use the Makefile.
make
Usage
ncvt <number to convert> <initial base> <target base>
Limitations
Max. base is 127 (because any bigger base would exceed the amount of available characters in ASCII).