Quality Testing

Quality is delighting customers

How to convert into original value? Please help me in this.

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

Views: 159

Reply to This

Replies to This Discussion

Try with Cdbl.

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   ......

thanks Pratap for your reply.

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service