User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
668
LongWordToHex
Prototype
procedure LongWordToHex(input : dword; var output : array[8] 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: double word number to be converted
- output: destination string
Returns Nothing.
Example
var input : dword;
txt : array[8] of char;
//...
input := 65535;
LongWordToHex(input, txt); // txt is ‘0000FFFF’
Notes None.
LongIntToHex
Prototype
procedure LongIntToHex(input : longint; var output : array[8] 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: longint number to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
var input : longint;
txt : array[8] of char;
//...
input := -2147483648;
LongIntToHex(input, txt); // txt is ‘80000000’
Notes None.