VALI

Returns the index of the element in an array nearest to the number you specify.

Format

VALI (A, X)

Arguments

 
A
An array.
X
A real number.

Example

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