Hi, me again. Ok, does anyone know how to make VB understand the difference between the values say: 1200.001, 1200.002, 1200.003

I have a textbox which displays the x + y co-ords of a picture. Another text box then displays an assigned number to each x + y co-ords. for example:

If text1.text = 1200 then text2.text = 1
If text1.text = 1200.001 then text2.text = 2
if text1.text = 1200.002 then text2.text = 3

where 1200, 1200.001, 1200.002 are the added co-ords of the pics.

BUT VB doesn't understand, it still displays 1 in text2 for each one.

Thanks a lot!