RomanToInt function
Convert a string with a Roman number to it's decimal value.
Declaration
function RomanToInt(const S: string;
Strictness: TRomanConversionStrictness=rcsRelaxed)
: LongIntArguments
S | String to convert. |
Strictness |
Function result
Value of the string.
Description
RomanToInt returns the decimal equivalent of the Roman numerals in the string
S.
Invalid characters are dropped from
S. A negative numeral is supported as well.
The level of error checking is determined by the
strictness
parameter, the values are described in the type
TRomanConversionStrictness.Errors
On error, a EConvertError exception is raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
