Mikroelektronika MIKROE-442 Datenbogen
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
663
IntToStr
Prototype
sub procedure IntToStr(dim input as integer, dim byref output as
string[6])
Description Converts input integer number to a string. The output string is right justified and the remaining positions
on the left (if any) are filled with blanks.
Parameters -
input:
integer number to be converted
-
output:
destination string
Returns
Nothing.
Requires
Nothing.
Example
dim input as integer
txt as string[6]
...
input = -4220
IntToStr(input, txt) ‘ txt is “ -4220”
Notes
None.
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 justified and the remaining positions
on the left (if any) are filled with blanks.
Parameters -
input:
longint number to be converted
-
output:
destination string
Returns
Nothing.
Requires
Nothing.
Example
dim input as longint
txt as string[11]
...
input = -12345678
IntToStr(input, txt) ‘ txt is “ -12345678”
Notes
None.