MikroElektronika PIC Microcontrollers PIC16 Manual do Utilizador Página 169

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 172
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 168
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])
Vista de página 168
1 2 ... 164 165 166 167 168 169 170 171 172

Comentários a estes Manuais

Sem comentários