Datasheet

IntToStr
LongintToStr
488
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure IntToStr(input : integer; var output : array[6] of char);
Returns Nothing.
Description
Converts input integer number to a string. The output string is right justified and
the remaining positions on the left (if any) are filled with blanks.
Parameters :
-
input: integer number to be converted
-
output: destination string
Requires Nothing.
Example
var input : integer;
txt : string[5];
//...
begin
input := -4220;
IntToStr(input, txt); // txt is ' -4220'
Prototype
procedure LongintToStr(input : longint; var output : array[11] of
char);
Returns Nothing.
Description
Converts input longint number to a string. The output string is right justified and
the remaining positions on the left (if any) are filled with blanks.
Parameters :
-
input: longint number to be converted
- output: destination string
Requires Nothing.
Example
var input : longint;
txt : array[11] of char;
//...
begin
input := -12345678;
IntToStr(input, txt); // txt is ' -12345678'