RomanNumerals

laika.ast.RomanNumerals
object RomanNumerals

Converts Roman numerals to integers and vice versa. Since there never have been universally accepted rules for Roman numerals, the conversion functions do not apply strict error checking, so some unusual or illegal constructs may be supported, too. They do not prevent using the same symbol more than three times in a row for example.

Attributes

Source
RomanNumerals.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def intToRoman(value: Int): String

Converts from an integer to Roman numerals.

Converts from an integer to Roman numerals. The integer has to be between 1 and 4999.

Attributes

Source
RomanNumerals.scala
def romanToInt(roman: String): Either[String, Int]

Converts from Roman numerals to integer.

Converts from Roman numerals to integer.

Attributes

Source
RomanNumerals.scala