beautypg.com

Ceiling, Channelvalue – MTS Multipurpose Elite User Manual

Page 248

background image

avg

Syntax:

avg(number1, number2,[numberN])

Returns the average of a series of numbers.

Ceiling

This function is used to round the specified number up to the nearest whole number.

Syntax

Ceiling(number)

The smallest integer greater than or equal to the specified number.

Examples

The following formula returns the value 6: ceiling(5.4)

The following formula returns the value 7: ceiling(6.9)

ChannelValue

The ChannelValue function returns the value of one array that corresponds with the location of a value
found in another array.

Returns

The value from the array at the specified index or NaN (Not a Number) if not found.

Syntax

ChannelValue(resultChannel, searchChannel, searchValue[, startIndex, endIndex])

Parameters

ResultChannel - The array where the result is extracted.

SearchChannel - The array used in the search.

SearchValue - The value to search for in the search array.

StartIndex - The optional starting index for the search. If this parameter is not present, the search starts
at the beginning of the array.

EndIndex - The optional ending index for the search. If this parameter is not present, the search ends at
the last point in the array.

Unit Class

Same as result channel.

248 | MTS TestSuite

Working with Variables