# Tolerance for equality in GAMS/CPLEX

Is there an option in GAMS that sets the tolerance for declaring two real numbers to equal?

For example, how can I tell GAMS or GAMS/CPLEX that $$0.999100 = 0.99909$$?

• Welcome to OR.SE. To add @Mark L. Stone said, GAMS has an option to set decimals of numbers. You could try (E.g. option decimals = 4;). Jan 31 '20 at 18:52