Created
January 29, 2013 17:50
-
-
Save anonymous/4666136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A,B,C,D,E,F,G are 2 decimnal numbers | |
Real life: | |
(A + B - C) * (D + E) * (F - G) | |
Proper usage ROUND to prevent FPP: | |
X = ROUND(A + B, 2) | |
X = ROUND(X - C, 2) | |
Y = ROUND(D + E, 2) | |
Z = ROUND(F - G, 2) | |
RESULT = X * Y * Z | |
How easy to make a bug: | |
ROUND(A + B - C, 2) * Y * Z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment