Quality is delighting customers
The below code is displaying output as 8.19999999999999E-03. But I want original output i.e 0.0082. How to convert it. Please help me.
piprate=1.0000
sellrate=1.0082
finalrate=sellrate-piprate
msgbox finalrate
~Thanks
Tags:
Permalink Reply by gajendra pratap on August 30, 2012 at 10:13am use the round function provided by qtp.. it will work fine..
syntax:- round(variable,no. of values)
replace last stmt with-----
in this case:- msgbox round(finalrate,4)
it works for qtp 9.2 ......
Manager QA at IdeaS Revenue Optimization
© 2013 Created by Quality Testing.