Quote Originally Posted by sdmike View Post
What is "static_cast<int>"?
It's a way of type casting, that is, converting data from one of C++'s number types to another. In this case you want to convert from a float to an int.

In C you would write,
change = (int) (t*100)
but I think in C++ the use of static_cast<> is safer.