WORD_TO_BCD (FUN)¶
FUNCTION WORD_TO_BCD : WORD
Converts one WORD in binary code into one WORD in BCD code
Use BCD_TO_WORD for the reverse conversion.
- InOut:
Scope
Name
Type
Comment
Return
WORD_TO_BCDWORDValue in BCD code for the input
WInput
WWORDValue in binary code. Valid range: 0..9999