cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Help!
Help!
May 30, 2012 at 8:11pm UTC
JonasQuist
(22)
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
May 30, 2012 at 8:17pm UTC
May 30, 2012 at 8:24pm UTC
vlad from moscow
(6539)
d = a * 12.0;
May 30, 2012 at 8:44pm UTC
JonasQuist
(22)
Thank you :)
Topic archived. No new replies allowed.