User:Stelio/Roman

This is an improved version of the existing Template:Roman.

''Written on 13 Mar 2009. Ideas implemented into practice on 25 Apr 2016.''

This template converts numbers into Roman numerals, using the following symbols:

An overline, representing multiplication by 1000, is used to extend the upper range of the function.

See Roman numerals for further information.

Usage


Where:
 * 'number' is a numeric value subject to the following limitations:
 * The largest number that this template will correctly process is 4,999,999 1727/1728 (which will be resolved as $\overline{MMMMCMXCIX}$CMXCIXS:•:ЄƧƧƻ℈»»»»»). The template will return an error message if any argument is used that is larger than this.
 * A negative argument will result in the template returning an error message.
 * Arguments are rounded to the nearest 1728th, since this is the highest level of precision that this template includes.
 * 'error_message' is the text to display if the template cannot handle 'number' (i.e. 'number' is either too large or is negative). If left blank, the function will use descriptive error messages.

A blank argument will be treated as a zero value. A text argument will cause an 'Unrecognised word' error in the mathematical expression parser.

Template code
