28/04: Hungover and angry...
I drug my ass out of bed and got to work relatively on time today. That's good. Then as I walked in the door and looked at my white board I am angry at Meeting?s all over again for being such a dipweed.
Did I seriously spend half my day yesterday tracking down an error he put in a long time ago because he can't do basic comp sci level math?
When you are looking for a percentage... and this is your formula..
a - b * 100 / b
.. and your numbers are in the nine-hundred-thousands level of places... maybe.. just maybe something might be wrong?
Side note for the mathematically forgetful, the order of operations are multiplication and division is done first.. left to right.. then addition and subtraction left to right.
So his statement above would evaluate as the following (the inner most parens get done first then work out:
a-[(b*100)/b]
What he wanted was:
[(a-b)/b]*100
So Meeting? didn't just bungle the ordering he totally f'd it up. He's been "let go" for almost a year and still his code is kicking us in the nuts.
Nerd rage!
Did I seriously spend half my day yesterday tracking down an error he put in a long time ago because he can't do basic comp sci level math?
When you are looking for a percentage... and this is your formula..
a - b * 100 / b
.. and your numbers are in the nine-hundred-thousands level of places... maybe.. just maybe something might be wrong?
Side note for the mathematically forgetful, the order of operations are multiplication and division is done first.. left to right.. then addition and subtraction left to right.
So his statement above would evaluate as the following (the inner most parens get done first then work out:
a-[(b*100)/b]
What he wanted was:
[(a-b)/b]*100
So Meeting? didn't just bungle the ordering he totally f'd it up. He's been "let go" for almost a year and still his code is kicking us in the nuts.
Nerd rage!