Hi,
if you are trying to convert from byte array to long integer, simply use the union in the opposite way:
Number Out;
Out.barray[0] = b0;
Out.barray[1] = b1;
Out.barray[2] = b2;
Out.barray[3] = b3;
unsigned long val = Out.num
Hi,
if you are trying to convert from byte array to long integer, simply use the union in the opposite way:
Number Out;
Out.barray[0] = b0;
Out.barray[1] = b1;
Out.barray[2] = b2;
Out.barray[3] = b3;
unsigned long val = Out.num