Converts a string to numeric value. If the string is integer it returns an integer value. If the string contains a number presentation which is a float number the returned value is real. In case the argument is already numeric no conversion is done.
VAL(undef) is undef or raises an error if the option RaiseMatherror is set in bit sbMathErrUndef.