To find out the absolute value of a number a built in function in QTP is available
Example- a= -1
Print abs(a) ‘output will be 1
This code will find the absolute value of a number