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:

    “This unlettered man’s speaking and writing are standard English. Some words and phrases deemed vulgarisms and Americanisms before, he has made standard American; such as “It will pay.” It suggests that the one great rule of composition—and if I were a professor of rhetoric I should insist on this—is, to speak the truth. This first, this second, this third; pebbles in your mouth or not. This demands earnestness and manhood chiefly.”
    —Henry David Thoreau (1817–1862)