GREATEREQUAL

Purpose:

Determines if one expression is greater than or equal to another expression.

Syntax:

GREATEREQUAL(val1, val2)

val1

-

A series, or table.

val2

-

A scalar, series, or table.

Returns:

A scalar, series, or table (containing the value 1 or 0) of the same type as the higher of the two expressions. 1: TRUE; 0: FALSE. Integer is the lowest type, Real is next, and Complex is the highest type. If one or both of the expressions is a series, then a series results. The following is a list of type conversion rules:

 

Integer

>=

Real

yields Real

Integer

>=

Series

yields Series

Integer

>=

Integer

yields Integer

Real

>=

Complex

yields Complex

Real

>=

Series

yields Series

Complex

>=

Real Series

yields Complex Series

String

>=

String

yields String

Example:

greaterequal(max(W1), 20.0)

 

returns a 1 if the maximum value of W1 is greater than or equal to 20.0, or 0 if the maximum value of W1 is not greater than or equal to 20.0.

 

greaterequal({7, 5, 3, 4}, min({6, 5}))

 

returns a series {1, 1, 0, 0}.

Remarks:

greaterequal(a, b) is equivalent to a >= b.

 

String comparisons use STRCMP

See Also:

< <= > >= == != (Conditional Operators)

&& || ! AND OR NOT XOR (Logical Operators)

GREATEREQUAL

LESSER