Datasheet

Programming PIC Microcontrollers in BASIC - mikroElektronika
Description Parameter <input> represents numerical value of integer type that should be converted to string; parameter
<txt> is passed by the address and contains the result of conversion.
Parameter <txt> has to be of sufficient size to fit the converted string.
Example
IntToStr(Counter, Message)
' Copies value of integer Counter into string Message
5.2.1.5 Bcd2Dec – Converts 8-bit BCD value to decimal
Prototype
sub procedure Bcd2Dec(dim bcd_num as byte) as byte
Description Function converts 8-bit BCD numeral to its decimal equivalent and returns the result as byte.
Example
dim a as byte
dim b as byte
...
a = 140
b = Bcd2Dec(a) ' b equals 224 now
5.2.1.6 Bcd2Dec – Converts 8-bit decimal to BCD
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (12 sur 112)05/11/2004 02:20:52