Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Number.toRoman

toRoman() -> string

Description

Convert number to a Roman numeral.

The value must be an integer greater than zero, or an error will be thrown.

$num = 7
$num.toRoman()  //= 'VII'

$num = 19
$num.toRoman()  //= 'XIX'

$num = 1234
$num.toRoman()  //= 'MCCXXXIV'

See Also