Module:foreign numerals/documentation

This module provides conversion to and from foreign numerals to native numerical values. It's partially redundant with Module:roman numerals.

Each function may be called either from a template (see below) or from a module. "From" functions return native numerical values (of lua type), while "to" functions return strings.

Example:

{&#123;#invoke:|to_Roman|2764}}

gives

And the reverse function:

{&#123;#invoke:|from_Roman|MMDCCLXIV}}

gives

This module serves as a backend to the templates and.