Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Pascal
uses SysUtils;
i := StrToInt(S);

The function StrToInt will raise an exception of type EConvertError if the string is not a proper representation of an integer.
I : Integer := Integer'Value (s);

New implementation...