User`s manual
These routines convert byte, short, word, and integer to string. You can get text
representation of numerical value by passing it to one of the routines listed below:
Parameter input represents numerical value of integer type that should be convert-
ed to string; parameter txt is passed by address and it contains the result of conver-
sion. All the other procedures behave in similar fashion for appropriate input data
type.
Parameter txt has to be of sufficient size to fit the converted string.
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
164
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
Numeric Formatting Routines
Routines
Note
sub procedure ByteToStr(dim input as byte, dim byref txt as char[6])
sub procedure WordToStr(dim input as word, dim byref txt as char[6])
sub procedure ShortToStr(dim input as short, dim byref txt as char[6])
sub procedure IntToStr(dim input as integer, dim byref txt as char[6])
sub procedure IntToStr(dim input as integer, dim byref txt as char[6])