Function Val(str)

Val

Val(
    str    ! (input) string or element expression
   )

Arguments

str

A scalar string or element expression.

Return Value

The function Val returns the numerical value represented by the string or element str.

Note

If str cannot be interpreted as a numerical value, a runtime error may occur, see option suppress error messages of val function.

See also

The Val function is discussed in full detail in Intrinsic Functions for Sets and Set Elements of the

Language Reference.