There is a built in function in QTP to find out the absolute value of a number.
Example -
Below QTP code will find out the absolute value of a number.
a = -1
print abs(a) ' output will be 1
Example -
Below QTP code will find out the absolute value of a number.
a = -1
print abs(a) ' output will be 1
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs