Honestly, the best way to compare numbers is to compare them as numbers.
So to do that is you just need to convert both sides to a Double type so it has decimals. Doing this will round both sides.
CDbl(str1.Trim) = CDbl(str2.Trim)
Convert.ToDouble(str1.Trim) = Convert.ToDouble(str2.Trim)
Occasionally, you will get a string that is not a number or an empty string. So you will need to also make sure it’s a number.
If(IsNumeric(str1.Trim) And IsNumeric(str2.Trim), CDbl(str1.Trim) = CDbl(str2.Trim), False)
If the $ sign doesn’t convert, then use the .Replace("$",""), because I can’t remember if that sign gets seen as a number or not.
I hope this helps.