Findnearestvalue, Findnearestvalueindex, Floor – MTS Multipurpose Elite User Manual
Page 252

Exp
This function is used to calculate the value of e (2.71828...) raised to the power specified by the exponent.
Syntax
exp(number)
Returns
A value “e” raised to the specified power.
FindNearestValue
Locate the closest value in an array to the search value.
Syntax
FindNearestValue(array, searchValue[, startIndex, endIndex])
FindNearestValueIndex
Locate the index of the closest value in an array to the search value.
Syntax
FindNearestValueIndex(array, searchValue[, startIndex, endIndex])
Floor
Syntax
floor(number)
Returns
The largest integer less than or equal to the specified number.
This function is used to round the specified number down to the nearest whole number.
Example 1
Floor(5.4)
This formula returns the value 5.
Example 2
Floor(6.9)
This formula returns the value 6.
252 | MTS TestSuite
Working with Variables