User manual

578
mikoPascal PRO for PIC32
MikroElektronika
LongIntToStrWithZeros
Prototype
procedure LongIntToStrWithZeros(input: longint; var output: array[11] of
char);
Description Converts input longint to a string. The output string is right justied and the remaining positions on the
left (if any) are lled with zeros.
Parameters - input: signed long number 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.
ByteToHex
Prototype
procedure ByteToHex(input : byte; var output : array[2] of char);
Description Converts input number to a string containing the number’s hexadecimal representation. The output
string is right justied and remaining positions on the left (if any) are lled with zeros.
Parameters - input: byte to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
var t : byte;
txt : array[2] of char;
...
t := 2;
ByteToHex(t, txt); // txt is “02”
Notes None.