User manual
665
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
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: word 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.
LongIntToStrWithZeros
Prototype
procedure LongIntToStrWithZeros(input: longint; var output: array[11] of
char);
Description Converts input longint to a string. The output string is right justied and the remaining positions on the
left (if any) are lled with zeros.
Parameters - input: word to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
var t : longint;
txt : array[11] of char;
//...
t := -12345678;
LongIntToStrWithZeros(t, txt); // txt is ‘-0012345678’
Notes None.