# How do I minus x percent ?

Get help using Construct 2

### » Tue Oct 06, 2015 4:46 pm

No, I added round() around the whole expression..

The expression was

(cenakoncowa/100)*(100-RABAT)

so I added the bold part

round( (cenakoncowa/100)*(100-RABAT) )

This was done because I want to round everything inside the ( and the )
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

### » Tue Oct 06, 2015 5:45 pm

@LittleStain i do as you say and i have this same problem again

round( (cenakoncowa/100)*(100-RABAT) )&"zł"

B
109
S
25
G
43
Posts: 1,883
Reputation: 33,553

### » Tue Oct 06, 2015 6:30 pm

If
cenazasztuke = 5
isztuk = 3
rabat = 5

then
cenakońcowa = 15
canakoncowa+rabat = (cenakoncowa/100)*(100-rabat) = 14,25
round((cenakoncowa/100)*(100-rabat)) = 14

If you not getting similar results then there must be an event that keeps messing this up
B
157
S
64
G
41
Posts: 2,590
Reputation: 34,640

### » Tue Oct 06, 2015 7:38 pm

delgado wrote:@LittleStain i do as you say and i have this same problem again

round( (cenakoncowa/100)*(100-RABAT) )&"zł"

There are two places in the event-sheet which have the same event and action, are you changing both?
I'm not sure why you have the same event twice, only difference is the top event..
Using an 'or' event or a function-call would solve that..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

### » Wed Oct 07, 2015 6:41 am

@LittleStain yeah you are right
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,553

Previous