MAKEBCD/de

(Difference between revisions)
Jump to: navigation, search
m (1 revision)
((**COPIED FROM ENGLISH PAGE**) =)
Line 1: Line 1:
== (**COPIED FROM ENGLISH PAGE**) === <span class="f_Header">Action</span> =
+
= <span class="f_Header">Action</span> =
  
 
Convert a variable into its BCD value.
 
Convert a variable into its BCD value.
 +
Konvertiert den Wert einer Variablen in das BCD Format.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>

Revision as of 13:15, 22 February 2013

Contents

Action

Convert a variable into its BCD value. Konvertiert den Wert einer Variablen in das BCD Format.

 

 

Syntax

var1 = MAKEBCD(var2)

 

 

Remarks

var1

Variable that will be assigned with the converted value.

Var2

Variable that holds the decimal value.

 

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 decimal to BCD.

For printing the BCD value of a variable, you can use the BCD() function which converts a BCD number into a BCD string.

 

 

See also

MAKEDEC , BCD , MAKEINT

 

 

Example


Dim A As Byte
A = 65
Lcd A
Lowerline
Lcd Bcd(a)
A = Makebcd(a)
Lcd " " ; A
End

Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language