troubleshooting Question

Problem in VB

Avatar of kartikviyer
kartikviyer asked on
Visual Basic Classic
5 Comments1 Solution195 ViewsLast Modified:

This is my piece of code. ReadINI is a function that returns a string.

Dim MM as Double
Dim A, B  As Double

MM = 1/25.4
A = Val(ReadINI("Material 1", "Thickness", gszInput))
B = P.getVal(1) * MM

if A <> B then
      "o/p not equal"
      "o/p equal"
end if

The values of A and B when i try to debug through my app show as 0.071 i.e. they are equal yet program enters the "o/p not equal" section of
the if statement.

Any ideas as to why it isnt seeing the two values as equal.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros