MAKEDEC/de
From MCS Wiki AVR
Contents |
Funktion
Konvertiert ein BCD-kodierte Variable (Byte/Integer/Word) in eine Dezimalzahl.
Syntax
var1 = MAKEDEC(var2)
Remarks
var1 |
Variable die den Dezimalwert erhält. |
var2 |
Variable die den BCD-Wert liefert. |
When you want to use an I2C clock device, which stores its values as BCD values you can use this function to convert variables from BCD to decimal.
See also
Example
Dim A As Byte A = 65 Print A Print Bcd(a) A = Makedec(a) Print Spc(3) ; A End
Languages | English • Deutsch |
---|