Increase value A while value B decreases

I have this variable A that is my accuracy (smaller the value bigger the accuracy) then i have a progress bar that shows the accuracy, but the problem is that the bigger the accuracy the smaller the bar is, and I wanted the other way. so I wanted to know if anyone can tell me a way to increase a value while other decreases, for exemple: if variable A=1, variable B should be 100, and A=100, B should be 1.

Ps: it should work with diferent flactuating values not just static preset values

Any ideas? Thank you in advance

Hey @Lamaral14

B = 101 - A

2 Likes

OMG, simpler than i was thinking. Thank you very much

1 Like

Hey @Lamaral14

Additional info:

B = X - A

Where

X = MaxValue + MinValue

So in your case X= 100+1

1 Like