User manual

mikroBasic PRO for PIC32
MikroElektronika
585
LongintToStr
Prototype
sub procedure LongintToStr(dim input as longint, dim byref output as
string[11])
Description Converts input longint number to a string. The output string is right justied and the remaining positions
on the left (if any) are lled with blanks.
Parameters - input: signed long integer number to be converted
- output: destination string
Returns Nothing.
Requires Destination string should be at least 12 characters in length.
Example
dim input as longint
txt as string[11]
...
input = -12345678
IntToStr(input, txt) ‘ txt is “ -12345678”
Notes None.
LongWordToStr
Prototype
sub procedure LongWordToStr(dim input as longword, dim byref output as
string[10])
Description onverts input double word number to a string. The output string is right justied and the remaining
positions on the left (if any) are lled with blanks.
Parameters - input: unsigned long integer number to be converted
- output: destination string
Returns Nothing.
Requires Destination string should be at least 11 characters in length.
Example
dim input as longint
txt as string[10]
...
input = 12345678
IntToStr(input, txt) ‘ txt is “ 12345678”
Notes None.