1. A computer readable media including computer executable instructions configured to cause a processing device to perform operations for correcting potential floating-point errors in an addition or a subtraction calculation, the operations comprising: receiving a first subset of a plurality of instructions within an original program, the first subset including a first instruction; for the first instruction, copying a first exponent of a first operand into a first register and copying a second exponent of a second operand into a second register; comparing the first exponent to the second exponent to generate an exponent comparison; and when the exponent comparison is above a first preselected threshold or below a second preselected threshold, calculating a result of the first instruction using the first operand formatted according to an increased precision and the second operand formatted according to the increased precision.