Hi,
I am converting a number to character by adding 30 and then to string to be display but need the value as integer back for other calculations,
var1 & var2 = digit
bcd_strm = String( char(var1+0x30))+String(char(var2+0x30)) ;
bcd_dec = atoi(bcd_strm.c_str());
It worked for me. I do not know if this is what he looking for.