Help!

Hello here is my problem.
what i want is that Double D = to float a * 12 how should i write that? (note that i have the rest of the program figured out. i just need to know how i assign the double to a * 12)

float a;
float b;
float c;
double d;

i thougth that it would be something like this

Double d = float a * 12;

but that clearly were wrong.. please help me :)
Last edited on
d = a * 12.0;
Thank you :)
Topic archived. No new replies allowed.