I am writing a code for data acquisition for my hardware.
However, I need to find the average of the data that I have collected.
Here's the problem, the acquired data is in unsigned char
format and I need to convert it to double
format. Furthermore, the data collected is in exponential form [1.789232E-05].
Is there any possible way of converting a unsigned char
to double
then back again??
I have got a double j
and a unsigned char a[200]
The unsigned char consist of 1.789232E-05. How do I convert that data to double?
Thank you!