User manual
mikroPascal PRO for PIC32
MikroElektronika
577
IntToStrWithZeros
Prototype
procedure IntToStrWithZeros(input: integer; var output: array[6] of char);
Description Converts input integer to a string. The output string is right justied and the remaining positions on the
left (if any) are lled with zeros.
Parameters - input: integer number to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
var t : integer;
txt : array[6] of char;
//...
t := -3276;
IntToStrWithZeros(t, txt); // txt is ‘-03276’
Notes None.
LongWordToStrWithZeros
Prototype
procedure LongWordToStrWithZeros(input: dword; var output: array[10] of
char);
Description Converts input dword to a string. The output string is right justied and the remaining positions on the
left (if any) are lled with zeros.
Parameters - input: unsigned long number to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
var t : dword;
txt : array[10] of char;
//...
t := 12345678;
LongWordToStrWithZeros(t, txt); // txt is ‘0012345678’
Notes None.