User manual
mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
664
WordToStrWithZeros
Prototype
procedure WordToStrWithZeros(input: word; var output: array[5] of char);
Description Converts input word 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 : word;
txt : array[5] of char;
//...
t := 437;
WordToStrWithZeros(t, txt); // txt is ‘00437’
Notes None.
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: word 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.