Numerical error prevention