Skip to content

Instantly share code, notes, and snippets.

Created January 29, 2013 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4666136 to your computer and use it in GitHub Desktop.
Save anonymous/4666136 to your computer and use it in GitHub Desktop.
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