Action
Converts a variable into its BCD value.
Syntax
PRINT BCD( var )
LCD BCD( var )
Remarks
Var |
Variable to convert. This must be a numeric variable or constant. |
When you want to use a I2C clock device which stores its values as BCD values you can use this function to print the value correctly.
BCD() will displays values with a trailing zero.
The BCD() function is intended for the PRINT/LCD statements.
Use the MAKEBCD function to convert variables.
See also
Example
Dim A As Byte
A = 65
Lcd A
Lowerline
Lcd Bcd(a)
End