Hi!

The following will also work.

==================================

Example:

"6" "2" "3" "4" "7"
Your 5 digits represents the decimal number 62347

Pseudo-Code:

variable_tenthousands = 6
variable_thousands = 2
variable_hundreds = 3
variable_tens = 4
variable_units = 7
variable_ee_address = 0

variable_ee_address = variable_units
variable_ee_address = variable_ee_address + (variable_tens * 10)
variable_ee_address = variable_ee_address + (variable_hundreds * 100)
variable_ee_address = variable_ee_address + (variable_thousands * 1000)
variable_ee_address = variable_ee_address + (variable_tenthousands * 10000)

Now the variable_ee_address will contain the value 62347

===================================

From your code I see that the 5 decimal digits (input data)
are stored in a 5 bytes array. One byte per digit, so there is
no binary-coded decimal. (No BCD).

Best regards,

Luciano