A command-line program and library for parsing and generating Roman numerals.
Run the following in your terminal:
make install
roman-numeral [arguments]
roman-numeral 42
# XLII
roman-numeral XLII
# 42
roman-numeral 1 3
# I
# II
# III
roman-numeral 1 3 9
# I
# II
# III
# IX
roman-numeral --format '[%s]' --separator '-' 1 3
# [I]-[II]-[III]
echo I III | roman-numeral --separator '+' | bc
# 6
--arabic / -i
Convert to Arabic (Integer) numeral.
--roman / -s
Convert to Roman (String) numeral.
--exclusive / -x
Make the range exclusive.
--format / -f FORMAT
Set text format (Default: %s).
--separator / -j SEPARATOR
Configure separator (Default: ).
--help / -h
Display a help message and quit.