

The output string has fixed width of 4 characters including null character at the end (string termination). Void ByteToStr( unsigned short input, char *output) Ĭonverts input byte to a string. The following functions convert decimal values to BCD and vice versa:

You can get text representation of numerical value by passing it to one of the following routines: The mikroC PRO for PIC Conversions Library provides routines for numerals to strings and BCD/decimal conversions.
