I always use it like that.
The raw value of the ADC is an integer up to 1023.
The calculation is written for float calculation. I write everything as float, so both me and the compiler know that it is calculated with float.
I always use it like that.
The raw value of the ADC is an integer up to 1023.
The calculation is written for float calculation. I write everything as float, so both me and the compiler know that it is calculated with float.