if "a" is an int and you want "b" to be the double, then try "b = a * 1.0;" . But i'm not really sure what you mean, or if that works.
That is compiler-dependent. (Python is fun, I know
Type conversion operators are the sure way to go.
As an excercise, do the following:
float a = 3.76, b = 2.32;
Try to output:
1. a mod b
3. a - converted to int / b and the result converted to int
4. attribute c the values of a + b, then print c as if it were a float so that in our case a+b == c