Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rounding issue in QTP11
#1
Solved: 10 Years, 9 Months, 1 Week ago
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!
Reply


Messages In This Thread
Rounding issue in QTP11 - by Brian.Osborne - 07-20-2011, 03:50 AM
RE: Rounding issue in QTP11 - by rajpes - 07-20-2011, 07:32 AM
RE: Rounding issue in QTP11 - by Brian.Osborne - 07-21-2011, 05:31 AM
RE: Rounding issue in QTP11 - by rajpes - 07-21-2011, 11:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Issues in QTP11.0 with .Net Add-in Nagaraju6 1 2,700 06-29-2016, 02:13 PM
Last Post: Ankesh
  Unable to generate Scripts using QTP11 Divya Roopa 1 1,983 03-05-2014, 09:07 AM
Last Post: basanth27
  Browser Compatability testing using QTP11 naveen51 1 1,923 12-16-2013, 10:33 AM
Last Post: supputuri
Sad Empty Server description SAP GUI 7.20 with QTP11 sylvester618 2 4,576 09-10-2013, 06:05 PM
Last Post: Ankur
  Patches List of QTP11 vinod123 1 2,264 07-15-2013, 08:21 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)