vals.fmt_roman
vals.fmt_roman(x, case='upper', pattern='{x}')
Format values as Roman numerals.
With numeric values we can transform those to Roman numerals, rounding values as necessary.
Parameters
Name | Type | Description | Default |
---|---|---|---|
x |
X |
A list of values to be formatted. | required |
case |
str |
Should Roman numerals should be rendered as uppercase ("upper" ) or lowercase ("lower" ) letters? By default, this is set to "upper" . |
'upper' |
pattern |
str |
A formatting pattern that allows for decoration of the formatted value. The formatted value is represented by the {x} (which can be used multiple times, if needed) and all other characters will be interpreted as string literals. |
'{x}' |
Returns
Type | Description |
---|---|
list [str ] |
A list of formatted values is returned. |