Convert an integer into a string SysUtils unit
1  function IntToStr ( Number : Integer ) : string;
2  function IntToStr ( BigNumber : Int64 ) : string;
The IntToStr function converts an Integer Number or Int64 BigNumber into a string.
It has two forms : the latter supporting very large integers.
It is normally used for display purposes.
Related commands
FloatToStr Convert a floating point value to a string
Format Rich formatting of numbers and text into a string
StrToInt Convert an integer string into an Integer value
 Download this web site as a Windows program.

Development Boards at very low prices with free postage.

Example code : Converting integers to strings
  NormalInteger : Integer;
  BigInteger    : Int64;

  NormalInteger := 2147483647;          // Largest possible Integer value
  BigInteger    := 9223372036854775807; // Largest possible Int64 value

  ShowMessage('NormalInteger :     '+IntToStr(NormalInteger));
  ShowMessage('BigInteger :        '+IntToStr(BigInteger));
  ShowMessage('Calculated number : '+IntToStr(27 * 4));
Show full unit code
   NormalInteger     : 2147483647
   BigInteger        : 9223372036854775807
   Calculated number : 108
Delphi Programming Neil Moffatt 2002 - 2014. All rights reserved.  |  Contact the author  |  Home Page