[Overview][Resource strings][Constants][Types][Procedures and functions][Index] |
Convert a string with a Roman number to it's decimal value.
Source position: strutils.pp line 200
function RomanToInt( |
const S: string; |
Strictness: TRomanConversionStrictness = rcsRelaxed |
):LongInt; |
S |
|
String to convert. |
Value of the string.
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.
On error, a EConvertError exception is raised.
|
How to treat invalid roman numerals in TryRomanToInt. |
|
|
Represent an integer with roman numerals |
|
|
Converts a hexadecimal string to a decimal value |
|
|
Converts a string representation of a number to its numerical value, given a certain base. |