User manual
588
mikoBasic PRO for PIC32
MikroElektronika
LongIntToStrWithZeros
Prototype
sub procedure LongIntToStrWithZeros(dim input as longint, dim byref output
as string[11])
Description Converts input longint to a string. The output string is right justied and the remaining positions on the
left (if any) are lled with zeros.
Parameters - input: word to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
dim t as longint
txt as string[11]
t = -12345678
LongIntToStrWithZeros(t, txt) ‘ txt is “-0012345678”
Notes None.
ByteToHex
Prototype
dim procedure ByteToHex(dim input as byte, dim byref output as string[2])
Description Converts input number to a string containing the number’s hexadecimal representation. The output
string is right justied and remaining positions on the left (if any) are lled with zeros.
Parameters - input: byte to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
dim t as byte
txt as string[2]
t = 2
ByteToHex(t, txt) ‘ txt is “02”
Notes None.