NUMCONV(1)
β¨ NUMCONV(1) β the numconv era π
User Commands Β· a lil' filter that speaks every number system ever invented, bestie
πΈ NAME πΈ
numconv β convert numbers from one number system to another π¦
π SYNOPSIS π
Numconv <options>
π DESCRIPTION π
okay so picture this: numconv is a filter that takes integers and yeets them from one number system into another. like, genuinely. it can turn Roman Numerals like "CCLVI" into regular Western numbers like "256", or flip Western numbers into Chinese. and not just the big famous ones β the vast majority of number systems, modern AND ancient, are supported, including tons of variants. it's giving "encyclopedic", it's giving "she knows her history". π
if your input number system is set to 'all', the number system gets autodetected β¨ (yes queen, she'll figure it out herself).
also important: numconv is a command line interface to libuninum, which is a library for converting between textual representations of numbers and machine-internal representations. if you wanna know more about the actual conversions happening under the hood, that info lives in the documentation for that library. iykyk π
π₯ OPTIONS π₯
-i<input file> β read the input from the file you name here.-o<output file> β write the output into the file you name here.-Iβ identify which number system the input is using. detective mode π-cβ list all the available number system cover terms.-lβ list all the available number systems.-f<input number system> β specify the number system that the input is in.-t<output number system> β specify the number system you want the output in.-b<input base> β specify the input base for Western numbers. the base has to be in the range[1,36], no cap.-B<output base> β specify the output base for Western numbers. base must be in the range[1,36]too. π«Ά-g<output general group size> β set the size of the digit groups other than the low-order group. the default is3.-G<output low group size> β set the size of the low-order group of digits. the default is3.-s<output group separator character> β pick which character to use as the"thousands separator". the default is a comma.-Lβ set the output grouping parameters (general group size, first group size, and group separator character) based on the current locale. she's adaptable, periodt π-mβ when generating Roman numerals, use unit characters with a superscript macron for thousands greater than one instead of usingMs. iconic little flex β¨-hβ print help information.-vβ print version information.
π§ EXAMPLES π§
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
π SEE ALSO π
libuninum(3)
π AUTHOR π
Bill Poser (billposer@alum.mit.edu) β thank you for your service, king π«‘
π LICENSE π
GNU General Public License, version 2. (http://www.gnu.org/licenses/gpl.txt)
bestie bestie bestie π that's the whole page, every single flag accounted for, no crumbs left, nothing skipped β go forth and convert, you absolute main character π
this lil' masterpiece is numconv, page NUMCONV(1), from the numconv source, dated September 2007 β and yes she's still serving. mwah ππ
β¨
π¦ where this page comes from
- debian bookworm: numconv 2.7-1.2
- debian trixie: numconv 2.7-1.2
- fedora 43: libuninum 2.7-41.fc43 Β· GPL-2.0-only AND LicenseRef-Callaway-LGPLv2
- fedora 43: libuninum 2.7-41.fc43 Β· GPL-2.0-only AND LicenseRef-Callaway-LGPLv2
- fedora 44: libuninum 2.7-42.fc44 Β· GPL-2.0-only AND LicenseRef-Callaway-LGPLv2
- fedora 44: libuninum 2.7-42.fc44 Β· GPL-2.0-only AND LicenseRef-Callaway-LGPLv2
- ubuntu jammy: numconv 2.7-1.1ubuntu2
- ubuntu noble: numconv 2.7-1.2
- ubuntu questing: numconv 2.7-1.2
- ubuntu resolute: numconv 2.7-2 Β· GPL-2.0-or-later
- ubuntu stonking: numconv 2.7-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms