What is the difference between:
long myLong;
float myFloat = (float) myLong;
and:
float myFloat = float(myLong);
What is the difference between:
long myLong;
float myFloat = (float) myLong;
and:
float myFloat = float(myLong);
There is no difference except for syntax, but in C++ you should really be using the templated casting functions