DOKK / manpages / debian 12 / numconv / numconv.1.en
NUMCONV(1) User Commands NUMCONV(1)

numconv - convert numbers from one number system to another

Numconv <options>

numconv is a filter that converts integers from one number system to another. For example, it can convert from Roman Numerals such as "CCLVI" to ordinary Western numbers such as "256" or from Western numbers to Chinese. The great majority of number systems, both modern and ancient, are supported, including numerous variants.

If the input number system is 'all', the number system will be autodetected.

numconv is a command line interface to libuninum a library for converting between textual representations of numbers and machine-internal representations. Further information about the conversions performed is available in the documentation for this library.

Read input from the specified file.
Write output into the specified file.
Identify the number system of the input.
List the available number system cover terms.
List the available number systems.
Specify the number system of the input.
Specify the number system of the output.
Specify the input base for Western numbers. The base must be in the range [1,36].
Specify the output base for Western numbers. The base must be in the range [1,36].
Specify the size of digit groups other than the ow-order group. The default is 3.
Specify the size of the low-order group of digits. The default is 3.
Specify character to use as "thousands separator". The default is a comma.
Set the output grouping parameters, general group size, first group size, and group separator character, according to the current locale.
When generating Roman numerals, use unit characters with superscript macron for thousands greater than one instead of Ms.
Print help information.
Print version information.

To convert from Roman Numerals to ordinary Western numbers:

numconv -f Roman -t Western_Lower

To convert from ordinary Western numbers to the variety of number in current use in the People's Republic of China:

numconv -f Western -t Mandarin_Regular_Simplified

To convert from ordinary Western numbers to Western numbers in base 2:

numconv -f Western_Lower -t Western_Lower -B 2

To convert from Urdu numbers to Hindi numbers with the traditional Indian grouping:

numconv -f Perso_Arabic -t Devanagari -g 2

libuninum (3)

Bill Poser (billposer@alum.mit.edu)

GNU General Public License, version 2. (http://www.gnu.org/licenses/gpl.txt)

September 2007 numconv