I have to make a comparison between two numbers, but with a tolerance eg:
I have a value of 200 in a string
I must have an active object that, when the x value compared to the value of 200 is the highest 2% or more lower than 2%, the banner is green, otherwise (else) turns red
the value 200 is a dynamic value read from a hardware device that goes from 0 to 250 (the elettrcia mains voltage)
inside an edit box I have to put the value that I read with the tester into an electrical socket
If the tester read 232 volts, I enter this value in the 'edit box.
if the voltage read from my hardware unit is next to that +/- 2% it means that the system is calibrated ok and a graphic banner changes state.
You can help me?