MikroElektronika PIC Microcontrollers PIC16 Manuel d'utilisateur Page 169

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 172
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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])
Vue de la page 168
1 2 ... 164 165 166 167 168 169 170 171 172

Commentaires sur ces manuels

Pas de commentaire