views:

69

answers:

1

What is the difference between:

long myLong;
float myFloat = (float) myLong;

and:

float myFloat = float(myLong);
+1  A: 

There is no difference except for syntax, but in C++ you should really be using the templated casting functions

Graphics Noob