beautypg.com

Rem(dividend, divisor), Round(number), Sign(number) – MTS Multipurpose Elite User Manual

Page 257

background image

Syntax

pow(base, exponent)

Example 1

Pow(2, 3)

This formula returns the value 8 (2^3, or 2*2*2)

Example 2

Pow(5, 2)

This formula returns the value 25 (5^2, or 5*5)

rem(dividend, divisor)

The remainder (modulo) from the division of two numbers.

Syntax

rem(dividend, divisor)

round(number)

Rounds a value to the nearest integer.

Syntax

round(number)

sign(number)

Value that indicates the sign of a number.

Returns

This function returns –1 is the number is negative, or +1 is the number is positive. If the number is exactly
0, the function returns 0.

Syntax

sign(number)

Example 1

sign(-500)

This formula returns the value -1.

Example 2

sign (20)

This formula returns the value +1

MTS TestSuite | 257

Working with Variables