unsigned long X = 1001; unsigned long Y = 1000; unsigned long T; float Z; Z = X/Y; T = (14 / Z) * 60;
If I want to see the result as follows:
Z = 1.001 T = 839
I need Z has 3 digits after decimal point and T is a rounded number. How would I define them variable? Any idea?