help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

IntToStr

Convert an integer value to a decimal string.

Declaration

Source position: line 0

function IntToStr(

  Value: Integer

):String;

function IntToStr(

  Value: Int64

):String;

function IntToStr(

  Value: QWord

):String;

Description

IntToStr coverts Value to it's 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

IntToHex

  

Convert an integer value to a hexadecimal string.

StrToInt

  

Convert a string to an integer value.

Example

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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505