I have a variable called var1, it's value changes throughout the program.
Towards the bottom of the program I have some maths functions which use var1.
ru = (var1 / 4) * 100;
rh = (rsg / var1) * 100
Now the trouble I have is that I need the var1 to be the same value in both equations, but at the moment the second var1 value is the first var1 value divided by 4.
Whats the best round this? Do I copy the var1 variable to another variable before doing the sums, if so how would this be done ?
Thanks in advance.