VAL

Returns an array element nearest the number you specified.

Format

VAL (A, X)

Arguments

 
A
An array.
X
A real number.

Example

The following example illustrates the use of the VAL function:
 
Function
VAL({2,0,3}, 2.2)
Result
2