Forum Discussion
TanyaYatskovska
Alumni
13 years agoHi Madhavan,
You need to create a special comparison procedure in this case. Something like this:
function Compare()
{
var storedValue = aqConvert.StrToFloat("5");
var actualValue = aqConvert.StrToFloat("4.8");
var dif= storedValue - actualValue;
if (Math.abs(dif) <= 0.2)
Log.Message("The values are the same");
}
The "Working With Numeric Values" article contains the information on how to work with numeric values in a script.