I have tried this with decimal, double and float variables. I am dividing an integer by another integer and storing the result in a variable. None of the three data types will store decimal points, for example:
double d;
uint num1 = 20
uint num2 = 3
d = num1 / num2;
//d = 6.0
It is as if it is rounding to the nearest integer, help please?