Here you just divide, a bit furtherr you first convert to an int/ Either both should be converted or one conversion is superfluous.