User manual

580
mikoPascal PRO for PIC32
MikroElektronika
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: signed long integer 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.
IntToHex
Prototype
procedure IntToHex(input : integer; var output : array[64] 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: signed integer number to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
var input : integer;
txt : string[4];
//...
input := -32768;
IntToHex(input, txt); // txt is ‘8000’
Notes None.
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: unsigned long integer number to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
var input : dword;
txt : array[8] of char;
//...
input := 65535;
LongWordToHex(input, txt); // txt is ‘0000FFFF’
Notes None.