For what ever reason our company just takes the first two decimal values and uses that.
The problem is I'm trying to get to the same calculates.
I get .226 I'm checking that against .22
Anytime I try to convert (Format) .226 it ends up rounding it to .23 This is wrong.
Any idea how to take just two digits after the decimal?
(The easy way is I Multiply it by 100 and take the int value)
You already have the answer I was going to tell you (which is pretty easy). Multiply by 100 and CINT the value.
Current AUT running test scripts on TP 6.3 build 183, SQL 2000 DB.
Legacy AUT running on TP 5.6.0 Build 81 and TP 6.2 build 449 with SQL 2000 DB.
TP/IE Clients on VMWare ESX 4.1 server, AUT Servers on VMWare ESX 3.5 server.
Application Under Test (AUT):
Client/Server based, IE 7/8 interface with SQL 2005/2008 DB.
Automating with TP since August 2004.