nUMBER cONvERtER
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
Mirko Di ad743e6249
Literally removed one space
4 weeks ago
lib Updated copyright years 2 months ago
COPYING Initial commit 4 months ago
Makefile Bumped version number in Makefile 4 weeks ago
README.org Removed banner from README.org 1 month ago
install.sh Updated install.sh and ncvt.1 (manpage) 3 months ago
makefile.mk Updated install.sh and ncvt.1 (manpage) 3 months ago
ncvt.1 Bumped version number in manpage 1 month ago
ncvt.c Literally removed one space 4 weeks ago

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