Quote: "I have tried tghe val() command but this only returns an integer and this value is a real"
Not true.
It's the variable
type which you are placing the value into that denotes the result. So, if
A$ = "12.345" then...
B=VAL(A$)
results in B = 12, whereas:
B#=VAL(A$)
results in B# = 12.345
As a DBC programmer, I'm not up to speed with DBP pro, so you maybe don't need the # variable postfix - you are probably better defining a float variable instead.
If you aren't sure about floats and integers, they are covered in the series of tutorials for beginners at the top of the DB Classic board (they all still apply to DBP though).
TDK