Home | Reviews | GUIpedia | Forum | Fun500
Jason | Ways of the mathAnyone who has made a scripter, who has had it do math, i was wondering if it supported BODMAS/BOMDAS (Brackets Of Division, Multiplication, Addition, Subtraction) or just something like this 1 + 5 / 2 * 3 would be ((((1) + 5) / 2) * 3)? | 2010-09-08 | 6:46 AM |
Todd | Re:Ways of the mathLook up the "shunting yard" algorithm or "recursive descent" which both talk about how to do math equations. | 2010-09-08 | 6:56 AM |
Jason | Re:Ways of the mathwould the (((.).).) one be usable and/or acceptable?
| 2010-09-08 | 7:08 AM |
Todd | Re:Ways of the mathYes, recursive descent accounts for this and shunting-yard is simply a more understandable means of doing that. | 2010-09-08 | 5:19 PM |
Other
2021 Brandon Cornell