Bin2Bcd

variable = Bin2Bcd( binValue)

variable Variable to store results (Returns Long)
binValue Binary value to converted

Bin2Bcd converts a binary value to BCD (Binary Coded Decimal).

i = 123456
j = bin2Bcd(i)
Debug Hex j     ' Print 123456

See also Bcd2Bin

Go CUBLOC home