Datasheet
ShortToStr
WordToStr
487
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure ShortToStr(input : short; var output : array[4] of char);
Returns Nothing.
Description
Converts input short (signed byte) number to a string. The output string is right
justified and remaining positions on the left (if any) are filled with blanks.
Parameters :
-
input: short number to be converted
- output: destination string
Requires Nothing.
Example
var t : short;
txt : array[4] of char;
...
t := -24;
ByteToStr(t, txt); // txt is " -24" (one blank here)
Prototype
procedure WordToStr(input : word; var output : array[5] of char)
Returns Nothing.
Description
Converts input word to a string. The output string is right justified and the
remaining positions on the left (if any) are filled with blanks.
Parameters :
-
input: word to be converted
- output: destination string
Requires Nothing.
Example
var t : word;
array[5] of char;
...
t := 437;
WordToStr(t, txt); // txt is " 437" (two blanks here)