Good, but not the best.
I was working through, when I noticed something... This version of Lua works on the BODMAS version of math, whereas a different Lua thing I used uses the PEMDAS version. Because it used the BODMAS, all my calculations were off by quite a bit. And that’s really an inconvenience, because you now have to add more parentheses around everything to make it all work normally, or make the entire code longer. BODMAS: 8 / 2(2+2) = 16 It would start with brackets, and add (2+2), then the order by dividing 8/2, for 4(4), getting the 16. PEMDAS: 8 / 2(2+2) = 1 This one would get the Parentheses, adding (2+2) for 4, multiplying by 2 for 8, then divide by 8 to get the CORRECT answer: 1. For BODMAS to work into PEMDAS, you’d place parentheses so it looks like 8 / (2(2+2)). For PEMDAS to work like BODMAS, it’d look like (8/2)(2+2). Now, which do you people prefer for your order of operations? BODMAS? Or PEMDAS?