Math functions
Hello All,
I was working through some tutorials on math equations in Flash and had a question that I was hoping someone could explain. I did a trace on a math equation.
trace(5+5);
Which I got 10, I got that!
trace(5+5-2);
Which I got 8, I got that!
trace(5+5*2);
Which I got 15, I didn't get that, I was expecting 20.
or
trace(5+5/2);
I got 7.5, which I was expecting 5.
Can anyone explain how the math is working in those cases? I know I've been out of school for awhile. lol
Thanks.
