World Library  
Flag as Inappropriate
Email this Article

Greater-than sign

Article Id: WHEBN0011033536
Reproduction Date:

Title: Greater-than sign  
Author: World Heritage Encyclopedia
Language: English
Subject: GSM 03.38, EgyptAir Cargo, List of XML and HTML character entity references, Closed captioning, Posting style
Collection: Typographical Symbols
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Greater-than sign

The greater-than symbol is used in various operations that usually pertain to work being done mathematically or with a programming language. The symbol looks similar to a sideways V and has been used in recorded literature as old as the 1560s. Generally, the symbol is used to show inequality between two numbers or expressions. In mathematics, if there are two numbers being looked at as an inequality, the greater-than symbol usually goes in between the two and symbolizes that the first number is greater than the second number (For example: 4 > 2 or 102 > 100). There are other combinations of the greater-than symbol and the 'equals' symbol or the greater-than symbol beside another greater-than symbol that are also used mathematically and computationally.

Greater than symbol

Any easy way to think about it is thinking of it as an alligator. The alligator is eating the bigger thing. The larger side of the sign is the mouth of the alligator.

Contents

  • History 1
  • Computing 2
    • Angle brackets 2.1
    • Programming language 2.2
    • Double greater-than sign 2.3
    • Greater-than sign plus equals sign 2.4
    • Shell scripts 2.5
    • Spaceship operator 2.6
    • HTML 2.7
    • Electronic mail 2.8
  • See also 3

History

The symbols < and > first appear in Artis Analyticae Praxis ad Aequationes Algebraicas Resolvendas (The Analytical Arts Applied to Solving Algebraic Equations) by Thomas Harriot (1560-1621), which was published posthumously in 1631: "Signum majoritatis ut a > b significet a majorem quam b" and "Signum minoritatis ut a < b significet a minorem quam b."

According to Johnson (page 144), while Harriot was surveying North America, he saw a native American with a symbol that resembled the greater than symbol both backwards and forwards ( > and < ) . Johnson says it is likely he developed the two symbols from this symbol.

It is to tell a number on the left or right side.

Examples:

45<67

78>23

Computing

The greater-than sign (>) is an original ASCII character (hex 3E, decimal 62).

Angle brackets

The greater-than sign is used for an approximation of the closing angle bracket (⟩). ASCII does not have (angular brackets).

Programming language

BASIC and C-family languages, (including Java and C++) use the operator > to mean "greater than". In Lisp-family languages, > is a function used to mean "greater than". In Coldfusion and Fortran, operator .GT. means "greater than".

Double greater-than sign

The double greater-than sign (>>) is used for an approximation of the much greater than sign (≫). ASCII does not have the much greater-than sign.

The double greater-than sign (>>) is also used for an approximation of the closing guillemet (»). ASCII does not have guillemets.

In Java, C, and C++, the operator >> is the right-shift operator. In C++ it is also used to get input from a stream, similar to the C functions getchar and fgets.

In Haskell, the >> function is a monadic operator. It is used for sequentially composing two actions, discarding any value produced by the first. In that regard, it is like the statement sequencing operator in imperative languages, such as the semicolon in C.

Greater-than sign plus equals sign

The greater-than sign plus the equals sign (>=) is used for an approximation of the greater than or equal to sign (≥). ASCII doesn't have a greater-than-or-equal-to sign.

In BASIC, Lisp-family languages, and C-family languages (including Java and C++), operator >= means "greater than or equal to".

In Fortran, operator .GE. means "greater than or equal to".

Example: 5 > 2 means 5 is greater than 2. 6 < 9 means 6 is less than 9.

Shell scripts

In Bourne shell (and many other shells), greater-than sign is used to redirect output to a file. Greater-than plus ampersand (>&) is used to redirect to a file descriptor.

Spaceship operator

Greater-than sign is used in the spaceship operator.

HTML

In HTML (and SGML and XML), the greater-than sign is used at the end of tags. The greater-than sign may be included with >, while produces the greater-than or equal to sign.

Electronic mail

The greater-than sign is used to denote quotations in the e-mail and newsgroup formats, and this has been taken into use also in forums.

See also

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 



Copyright © World Library Foundation. All rights reserved. eBooks from World eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.