User manual
584
mikoBasic PRO for PIC32
MikroElektronika
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 justied and the remaining positions
on the left (if any) are lled with blanks.
Parameters - input: signed integer number to be converted
- output: destination string
Returns Nothing.
Requires Destination string should be at least 7 characters in length.
Example
dim input as integer
txt as string[6]
...
input = -4220
IntToStr(input, txt) ‘ txt is “ -4220”
Notes None.
WordToStrWithZeros
Prototype
sub procedure WordToStrWithZeros(dim input as word, dim byref output as
string[5])
Description Converts input word to a string. The output string is right justied and the 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 Destination string should be at least 7 characters in length.
Example
dim t as word
txt as string[5]
...
t = 437
WordToStrWithZeros(t, txt) ‘ txt is ‘00437’
Notes None.