# Quick math question

Get help using Construct 2

### » 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

B
15
S
3
Posts: 25
Reputation: 829

### » Fri Sep 11, 2015 3:03 pm

C2 produces 8.33333, which is correct. What number are you seeing?
B
71
S
22
G
274
Posts: 3,828
Reputation: 151,299

### » 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.
B
67
S
24
G
7
Posts: 1,519
Reputation: 11,084

### » 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
15
S
3
Posts: 25
Reputation: 829