cast numerator to float before divide