6 logical functions, Logical functions – Campbell Scientific RTMC Pro Real-Time Monitor and Control Professional Software User Manual

Page 30

Advertising
background image

RTMC Pro

FIX(x)

Returns the integer portion of a number. If the
number is a negative, the first negative integer
greater than or equal to the number is returned.

FLOOR(x)

Rounds a number down to an integer value.

FRAC(x)

Returns the fraction part of a number.

FormatFloat(x,s)

Converts a floating point value, x, into a string
with format defined by the format string, s.

FormatFloatL(x,s)

Converts a floating point value, x, into a string
with format defined by the format string, s.
Applies any rules associated with the locale of
the computer running RTMC.

INT(x)

Returns the integer portion of a number. If the
number is a negative, the first negative integer
less than or equal to the number is returned.

IsFinite(x)

Determines if a value is finite.

LN(x)

Returns the natural log of a number.

LOG(x)

Returns the natural log of a number.

LOG10(x)

Returns the logarithm base 10 of a number.

(x)MOD(y)

Performs a modulo divide of two numbers.

(x)PWR(y)

Raises constant x to the power of y.

RND

Generates a random number.

ROUND(x)

Rounds a number to a higher or lower integer
value.

ROUND(x,y)

Rounds a number to a higher or lower number.

SGN(x)

Used to find the sign value of a number (-1, 0, or
1).

SIN(x)

Returns the sine of an angle.

SINH(x)

Returns the hyperbolic sine of a number.

SQR(x)

Returns the square root of a number.

TAN(x)

Returns the tangent of an angle.

TANH(x)

Returns the hyperbolic tangent of a number.

2.4.6 Logical Functions

The following functions perform logical operations.

(x)AND(y)

Performs a logical conjunction on two numbers.

(x)EQV(y)

Performs a logical equivalence on two numbers.

IIF(x,y,z) Evaluates

an

expression (x) and returns one value

if true (y), a different value if false (z).

(x)IMP(y)

Performs a logical implication on two numbers.

NOT(x)

Performs a logical negation on a number.

(x)OR(y)

Performs a logical disjunction on two numbers.

24

Advertising