Originally posted by wrack
VB Code:
  1. Option Explicit
  2.  
  3. Private Sub Command1_Click()
  4.     Dim aa1 As Double
  5.     Dim aa2 As Double
  6.     Dim bb As Double
  7.    
  8.     Dim aa As Double
  9.    
  10.     aa1 = 1.36
  11.     aa2 = 0.04
  12.    
  13.     aa = CDbl(aa1) + CDbl(aa2)
  14.    
  15.     aa = Format(aa, "0.00")
  16.    
  17.     bb = 1.4
  18.    
  19.     bb = Format(bb, "0.00")
  20.    
  21.     If CDbl(aa) > CDbl(bb) Then
  22.         MsgBox aa & ">" & bb
  23.     ElseIf CDbl(aa) = CDbl(bb) Then
  24.         MsgBox aa & "=" & bb
  25.     Else
  26.         MsgBox aa & "<" & bb
  27.     End If
  28. End Sub

Cheers...
if u use the approach I have used u will get the right result and I always use this thing...even though this was the first time I found that this is also possible with VB...

I was stumped...but I am glad that I am using the right method or atleast its a right method I think...

Cheers...