User manual
mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
660
ByteToStr
Prototype
procedure ByteToStr(input : byte; var output : array[3] of char);
Description Converts input byte to a string. The output string is right justied and remaining positions on the left (if
any) are lled with blanks.
Parameters - input: byte to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
var t : byte;
txt : array[3] of char;
...
t := 24;
ByteToStr(t, txt); // txt is “ 24” (one blank here)
Notes None.
ShortToStr
Prototype
procedure ShortToStr(input : short; var output : array[4] of char);
Description Converts input short (signed byte) number to a string. The output string is right justied and remaining
positions on the left (if any) are lled with blanks.
Parameters - input: short number to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
var t : short;
txt : array[4] of char;
...
t := -24;
ByteToStr(t, txt); // txt is “ -24” (one blank here)
Notes None.