07-20-2011, 03:50 AM
I have run into a rounding issue and I'm hoping someone can clear this one up for me.
I have several calculations happening inside my QTP script. The first is rounding to 2 decimal places and getting the number Fee = 68.75. This is good. Then I derive another number off this by...
Fee = Payment * (.044)
Fee = Round(Fee, 2)
The purpose of this is for a checkpoint to validate a calculated number in my application. The result of this calculation is 3.025, and rounded this should be 3.03. 3.03 is what my application comes up with, but QTP is coming up with 3.02.
Help!
I have several calculations happening inside my QTP script. The first is rounding to 2 decimal places and getting the number Fee = 68.75. This is good. Then I derive another number off this by...
Fee = Payment * (.044)
Fee = Round(Fee, 2)
The purpose of this is for a checkpoint to validate a calculated number in my application. The result of this calculation is 3.025, and rounded this should be 3.03. 3.03 is what my application comes up with, but QTP is coming up with 3.02.
Help!