If it is to prevent division by zero just check if the `factor` is zero (instead of using an epsilon).