long ADC_Output ; // is ADC´s result
float c; // c is result of voltage calculation
c=[(ADC_Output/1024)*5]*6
printf(%2.2f,c); //print c float result with 2 int plus 2 decimal
Just use a routine to separate decimal digits into 4 variables (8 bits each). Search for this routine) and shift the decimal point two positions (from left or right).
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?