Type cast float to int to remove warnings in compilation