Discussion
:
Implicit conversion from int to double
Afficher un message
30/06/2008, 16h06
#
1
amphetaman@gmail.com
Messages: n/a
Hébergeur:
Implicit conversion from int to double
I know this might seem kind of silly, but is it necessary to cast int
to double?
Do I have to do
int i = 42;
double d = static_cast<double>(i);
or can I just do d = i?
amphetaman@gmail.com
Page generated in
0,05608
seconds with
9
queries