I have the following in C:
long long int a;
long long int b;
long long int c;
long long int d=a*b/c;
However, I want 'd' to be double. Is there a way I can multiply, divide long long int and get a double as an answer keeping up to 3 decimals as precision?
Thanks
Cast (at least) one of the
long long int
s todouble