Sign in Join
FPDoc Onlineexperiment

IntToStr function

In unit sysutils

Convert an integer value to a decimal string.

Declaration

pascal
function IntToStr(Value: LongInt): string

Description

IntToStr converts Value to its string representation. The resulting string has only as much characters as needed to represent the value. If the value is negative a minus sign is prepended to the string.

Errors

None.

See also

Example: ex74

pascal
Program Example74;

{ This program demonstrates the IntToStr function }

Uses sysutils;

Var I : longint;

Begin
  For I:=0 to 31 do
      begin
      Writeln (IntToStr(1 shl I));
      Writeln (IntToStr(15 shl I));
      end;
End.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.