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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With