Standard Relational Operators
The most common numerical relational operators used in programming languages are shown below.
| Convention | equal to | not equal to | greater than | less than | greater than or equal to |
less than or equal to |
|---|---|---|---|---|---|---|
| In print | = | ≠ | > | < | ≥ | ≤ |
| Fortran | .EQ. |
.NE. |
.GT. |
.LT. |
.GE. |
.LE. |
| ALGOL 68 | = |
≠ |
> |
< |
≥ |
≤ |
/= |
>= |
<= |
||||
eq |
ne |
gt |
lt |
ge |
le |
|
| BASIC-like | = |
<> |
> |
< |
>= |
<= |
| MUMPS | = |
'= |
> |
< |
'< |
'> |
| Pascal-like | = |
<> |
> |
< |
>= |
<= |
| C-like | == |
!= |
> |
< |
>= |
<= |
| Bourne-like shells | -eq |
-ne |
-gt |
-lt |
-ge |
-le |
| Batch file | EQU |
NEQ |
GTR |
LSS |
GEQ |
LEQ |
| MATLAB | == |
~= |
> |
< |
>= |
<= |
eq(x,y) |
ne(x,y) |
gt(x,y) |
lt(x,y) |
ge(x,y) |
le(x,y) |
|
| Mathematica | == |
!= |
> |
< |
>= |
<= |
Equal |
Unequal |
Greater |
Less |
GreaterEqual |
LessEqual |
Read more about this topic: Relational Operator
Famous quotes containing the word standard:
“The urge for Chinese food is always unpredictable: famous for no occasion, standard fare for no holiday, and the constant as to demand is either whim, the needy plebiscite of instantly famished drunks, or pregnancy.”
—Alexander Theroux (b. 1940)
Related Subjects
Related Words