C++ float-to-int conversion can be undefined behavior

2 points by classichasclass