The Val() function is intended specifically for this situation.
It returns the specific numeric value of a string.
For example,
x = "21.6"
? val(x)
21.6
The cInt() functions works equally well, but returns
just the integer, rounded up or down.
x = 21.6
? cint(x)
22
x = 21.4
? cint(x)
21
Bob