Eliminate warning concerning implicit conversion from float to int