Datasheet

IntToStr
LongintToStr
480
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure IntToStr(dim input as integer, dim byref output as
string[5]
Returns Nothing.
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
Requires Nothing.
Example
dim input as integer
txt as string[5]
'...
input = -4220
IntToStr(input, txt) ' txt is ' -4220'
Prototype
sub procedure LongintToStr(dim input as longint, dim byref output
as string[10])
Returns Nothing.
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
Requires Nothing.
Example
dim input as longint
txt as string[10]
'...
input = -12345678
IntToStr(input, txt) ' txt is ' -12345678'