nUMBER cONvERtER
Go to file
Mirko Di ecf7bac44b Made "makewhatis" only run on supported systems 2023-08-23 08:17:42 +02:00
.idea Moved help() to ncvt.c; used EMPTYVALUE instead of hardcoded "0" 2023-07-29 14:45:40 +02:00
lib Moved help() to ncvt.c; used EMPTYVALUE instead of hardcoded "0" 2023-07-29 14:45:40 +02:00
COPYING Initial commit 2022-12-15 14:46:01 +01:00
Makefile Bumped version number in Makefile 2023-03-04 09:33:53 +01:00
README.org Bumped version number in binary download link; beautified comments; ensured that when result is 0, output will not be empty 2023-07-29 11:17:31 +02:00
install.sh Made "makewhatis" only run on supported systems 2023-08-23 08:17:42 +02:00
makefile.mk Updated install.sh and ncvt.1 (manpage) 2023-01-13 10:09:12 +01:00
ncvt.1 Bumped version number in manpage 2023-07-29 11:28:45 +02:00
ncvt.c Moved help() to ncvt.c; used EMPTYVALUE instead of hardcoded "0" 2023-07-29 14:45:40 +02:00

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).