I have a few questions as to what the results of these operations are.
Firstly, if I have two integers and divide them and save the result in a double. Will there be any rounding issues such that 1/2 will equal .5 and not 1.
double ratio = int1/int2;
Second, if I now have this ratio and multiply it by a UWORD will there be any problems?
UWORD word1 = 4098;
UWORD word2 = ratio * word1;
By the way, I do get compiler warning when I do do these
narrowing or signed-to-unsigned type conversion found: double to unsigned short