Quick math question

Get help using Construct 2

Post » Fri Sep 11, 2015 2:50 pm

Hello!

I seem to be having a hard time getting construct to evaluate a line of math that goes like this: "10 - (100/60)"
From that i would expect anything in ( ) to be calculated first but it seems i am mistaken on how i can get that effect in construct and i hope someone here might have done this before :)

Thank you for your help!
B
14
S
3
Posts: 25
Reputation: 799

Post » Fri Sep 11, 2015 3:03 pm

C2 produces 8.33333, which is correct. What number are you seeing?
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,852

Post » Fri Sep 11, 2015 3:07 pm

10 - (100/60)=10-100/60
Order of operations

try something like:

10-5-3......&..........10-(5-3)
Last edited by korbaach on Fri Sep 11, 2015 3:21 pm, edited 1 time in total.
Image
B
65
S
23
G
7
Posts: 1,504
Reputation: 10,894

Post » Fri Sep 11, 2015 3:20 pm

Thanks guys, looked over it all and it seems i made a classic typo last night!
The calculations was never being run therefor it went to the backup system xD

Sorry to bug you all with my own typo tough.
And again thanks! ;)
B
14
S
3
Posts: 25
Reputation: 799


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests