Just wondering like, is there any difference between
andCode:double d = 12.3456; cout << (int) d << endl;
besides one is a hell of alot shorter to write ? static_cast<> is supposedly a c++ cast while () is more of a c-style cast but does it really matter. Tryed looking through the board but couldnt find any answers. Thanks for any input.Code:double d = 12.3456; cout << static_cast<int>(d) << endl;