help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions] Reference for unit 'strutils' (#rtl)

RomanToInt

Convert a string with a Roman number to it's decimal value.

Declaration

Source position: strutils.pp line 169

function RomanToInt(

  const S: String

):LongInt;

Arguments

S

  

String to convert.

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.

Errors

None.

See also

IntToRoman

  

Represent an integer with roman numerals

Hex2Dec

  

Converts a hexadecimal string to a decimal value

Numb2Dec

  

Converts a string representation of a number to its numerical value, given a certain base.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505