Skip to content

BCDToInt

Convert a BCD coded integer to a normal integer.

Declaration

Source position: sysstrh.inc line 324

function BCDToInt(Value: Integer) : Integer;

Description

BCDToInt converts a BCD coded integer to a normal integer.

Errors

None.

See also

Name Description
StrToInt Convert a string to an integer value.
IntToStr Convert an integer value to a decimal string.

Example

Program Example64;

{ This program demonstrates the BCDToInt function }

Uses sysutils;

Procedure Testit ( L : longint);
begin
  Writeln (L,' -> ',BCDToInt(L));
end;

Begin
  Testit(10);
  Testit(100);
  TestIt(23);
End.