Experts -
I handle baseball stats (using excel) for a local league I'm associated with. My problem is when subtracting (to get the correct innings pitched) sometimes the result is incorrect. The formula I am using is the follwoing one INT((INT(R275)-INT(S275)+(MOD(R275,1)-MOD(S275,1))/0.3))+MOD((MOD(R275,1)-MOD(S275,1))/0.3,1)*3/10. Anytime that the decimals (see example 1) are the same the result should be zero, but instead the decimal is a 3. It does not happen when the deciamls are different (with the exception the decimal of 0) (see examples 2) and the result is correct.
Example 1: incorrect results
71.2 - 51.2 = 20.0 this should be the correct result but instead it provides the result as 20.3.
Example 2: correct results
90.0 - 71.1 = 18.2
58.0 - 4.0 = 54.0
Any and all help would be greatly appreciated.
Merry Christmas and Happy New Year to all
Best regards,
Gus
I handle baseball stats (using excel) for a local league I'm associated with. My problem is when subtracting (to get the correct innings pitched) sometimes the result is incorrect. The formula I am using is the follwoing one INT((INT(R275)-INT(S275)+(MOD(R275,1)-MOD(S275,1))/0.3))+MOD((MOD(R275,1)-MOD(S275,1))/0.3,1)*3/10. Anytime that the decimals (see example 1) are the same the result should be zero, but instead the decimal is a 3. It does not happen when the deciamls are different (with the exception the decimal of 0) (see examples 2) and the result is correct.
Example 1: incorrect results
71.2 - 51.2 = 20.0 this should be the correct result but instead it provides the result as 20.3.
Example 2: correct results
90.0 - 71.1 = 18.2
58.0 - 4.0 = 54.0
Any and all help would be greatly appreciated.
Merry Christmas and Happy New Year to all
Best regards,
Gus