If I have an example code as below the messgebox displays 1. How can I get it to display 0.5. Proble I have is that I have certain strings which could be 0.5, 1.6, 3.4 etc... I want to convert these strings to a number so that calculations can take place. It appears that I lose the percentage.
If I use Int(Val(aa)) the messagebox displays 0.
aa = "0.5"
b = val(aa)
messagebox(str(b))
If I use Int(Val(aa)) the messagebox displays 0.
aa = "0.5"
b = val(aa)
messagebox(str(b))