Get last digit of integer number

Posted in Mathematics

Use GetLastDigit function.

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