Relational Operator - Standard Relational Operators

Standard Relational Operators

The most common numerical relational operators used in programming languages are shown below.

Common relational operators
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:

    If the Revolution has the right to destroy bridges and art monuments whenever necessary, it will stop still less from laying its hand on any tendency in art which, no matter how great its achievement in form, threatens to disintegrate the revolutionary environment or to arouse the internal forces of the Revolution, that is, the proletariat, the peasantry and the intelligentsia, to a hostile opposition to one another. Our standard is, clearly, political, imperative and intolerant.
    Leon Trotsky (1879–1940)