Adams Basic Package
>
Adams View
>
View Function Builder
>
Design-Time Functions
>
Functions: T - Z
> VALI
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
Learn more about matrix/array functions
.
This site works best with JavaScript enabled