Sign in Join
FPDoc Onlineexperiment

RomanToIntDef function

In unit StrUtils

Convert a roman numeral to an integer value.

Declaration

pascal
function RomanToIntDef(const S: string; const ADefault: LongInt=0; 
 Strictness: TRomanConversionStrictness=rcsRelaxed)
: LongInt

Description

RomanToInt converts the roman numeral in S to an integer and returns the integer value. The strictness of the conversion algorithm is determined by Strictness. If the conversion fails, ADefault is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.