- Joined
- Jul 22, 2014
- Messages
- 5,624
- Reaction score
- 5,104
- First Language
- English
- Primarily Uses
- RMVXA
Try spacing the terms of the formula out more; place a space between every single operand (except consecutive parentheses) and see if that helps.
Buh... wh... how...Only thing I can think of is maybe one of the scripts you're using is rounding off integers, although that wouldn't explain the null pops.
You can't add 58 to -96 and get -154. It would be -38.
Actually, addition and subtraction are left to right at the same time, at least in PEDMAS (which most computers and computer programs use). Though, surprisingly, the order of operations is not taught as a standard nationwide, so different countries/cultures have different assumptions on what to use (something I learned after teaching math for 10 years myself!).Buh... wh... how...
You DO realize I added 96 to 58 there, and subtracted the resulting 154 from the 240, right?
Because that wasn't a -96 + 58, it was a 96 + 58. Subtractions come after additions.
On another note, it seems Tsukihime got the original formula working correctly, so perhaps the arithmetic order of operations is somewhat less... rigid than I thought, as it were.
I'm assuming you're referring to thisBuh... wh... how...
You DO realize I added 96 to 58 there, and subtracted the resulting 154 from the 240, right?
Because that wasn't a -96 + 58, it was a 96 + 58. Subtractions come after additions.
Not in THIS universeSubtractions come after additions.
Not less rigid than you thought. You just thought wrongOn another note, it seems Tsukihime got the original formula working correctly, so perhaps the arithmetic order of operations is somewhat less... rigid than I thought, as it were
Of course I was never taught it was alright to break a negative sign from a number and treat them separately - but in this case, as the formula was set up, there were no negative numbers. There was a subtraction, which is not the same thing. The 96 is a positive number (b.def*2), which is subtracted from another positive number.lol math seems to be causing problems in this topic...
I'm assuming you're referring to this
240 - 96 + 58=240 - 154 = 86240 - 96 + 58 is not the same as 240 - (96 + 58)It's 240 + (-96 +58)
Regardless of country of origin I highly doubt any school would allow you to break the negative sign from a number and treat them separately.
-96 == -(96) == -1*96, but -96 + 20 != -(96 + 20) because -1*(96 + 20) equals (-96 - 20)
Subtraction is by definition adding a negative number.Of course I was never taught it was alright to break a negative sign from a number and treat them separately - but in this case, as the formula was set up, there were no negative numbers. There was a subtraction, which is not the same thing. The 96 is a positive number (b.def*2), which is subtracted from another positive number.
While you should get the same result from adding a negative number and subtracting a positive number, the difference between the two is quite immense.![]()
http://nrich.maths.org/5947 explains it better than I can.Subtraction is by definition adding a negative number.
a - a = 0
a + (-a) = 0
What is the difference?