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 is 3.
  • -G <output low group size> β€” set the size of the low-order group of digits. the default is 3.
  • -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 using Ms. 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