Created
January 29, 2013 17:30
-
-
Save anonymous/4666002 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
PSEUDOCODE HERE. | |
Let's say | |
A / B = C | |
I want to round C to two decimal places | |
Let's say | |
In real life: | |
A/B = 0.135 | |
ROUND(A/B, 2) = 0.14 | |
FPP: | |
A/B = 0.1349999999 | |
ROUND(A/B, 2) = 0.13 // error | |
ROUND(ROUND(A/B, 3), 2) = 0.13 // OK, but how can I know to round to 3 decimal places first? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment