In C++ visual studio .net, I'm dividing two integer variables and trying to put the answer in a double variable. How do I get two integers to divide and give me a double data variable answer? Thanks

doub_a = inta / intb
.75 = 9/12

Promote one of the operands to double.

int a = 9, b = 12;
   double d = (double)a / b;