1. A non-transitory computer readable media including computer executable instructions configured to cause a processing device to perform operations to correct 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; based on the exponent comparison: 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 in response to the exponent comparison being above a first preselected threshold or below a second preselected threshold, the first preselected threshold being greater than and separated from the second preselected threshold; and calculating the result of the first instruction not using the first operand formatted according to the increased precision and the second operand formatted according to the increased precision in response to the exponent comparison being below the first preselected threshold and above the second preselected threshold.