Would it be better to ensure that the inputs are always cast to floats?