BCD()
Action
Converts a variable into its BCD value.

Syntax
PRINT BCD( var )
LCD BCD( var )

Remarks

var Variable to convert.
var1 : Byte, Integer, Word, Long, 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
MAKEBCD , MAKEDEC

Example


Dim a as byte
a = 65
LCD a
Lowerline
LCD BCD(a)

End