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.
Scope
Name
Type
Comment
Return
WORD_TO_BCD
WORD
Value in BCD code for the input W
Input
W
Value in binary code. Valid range: 0..9999