Articles

Use GetLastDigit function.

function GetLastDigit(Num: Integer): string;
begin
  Result:=FloatToStr(Num mod 10);
end;