All Topics  
Tilde

 

   Email Print
   Bookmark   Link






 

Tilde



 
 
The tilde (~) ( or ) is a grapheme
Grapheme

In typography, a grapheme is the fundamental unit in writing systems. Graphemes include letter , Chinese characters, numerals, punctuation marks, and all the individual symbols of any of the world's writing systems....
 with several uses. The name of the character comes from Spanish
Spanish language

Spanish or Castilian is a Romance languages that originated in northern Spain, and gradually spread in the Kingdom of Castile and evolved into the principal language of government and trade....
, from the Latin
Latin

Latin is an Italic language, historically spoken in Latium and Ancient Rome. Through the Military history of the Roman Empire, Latin spread throughout the Mediterranean and a large part of Europe....
 titulus meaning a title or superscription, though the term “tilde” has evolved in that language and now has a different meaning in Linguistics.

It was originally written over a letter as a mark of abbreviation
Abbreviation

An abbreviation is a shortened form of a word or phrase. Usually, but not always, it consists of a letter or group of letters taken from the word or phrase....
, but has since acquired a number of other uses as a diacritic
Diacritic

A diacritic is a small sign added to a letter to alter pronunciation or to distinguish between similar words. The term derives from the Greek language d?a???t???? ....
 mark or a character in its own right, and there are a number of Unicode characters for these different roles.






Discussion
Ask a question about 'Tilde'
Start a new discussion about 'Tilde'
Answer questions from other users
Full Discussion Forum



Encyclopedia


The tilde (~) ( or ) is a grapheme
Grapheme

In typography, a grapheme is the fundamental unit in writing systems. Graphemes include letter , Chinese characters, numerals, punctuation marks, and all the individual symbols of any of the world's writing systems....
 with several uses. The name of the character comes from Spanish
Spanish language

Spanish or Castilian is a Romance languages that originated in northern Spain, and gradually spread in the Kingdom of Castile and evolved into the principal language of government and trade....
, from the Latin
Latin

Latin is an Italic language, historically spoken in Latium and Ancient Rome. Through the Military history of the Roman Empire, Latin spread throughout the Mediterranean and a large part of Europe....
 titulus meaning a title or superscription, though the term “tilde” has evolved in that language and now has a different meaning in Linguistics.

It was originally written over a letter as a mark of abbreviation
Abbreviation

An abbreviation is a shortened form of a word or phrase. Usually, but not always, it consists of a letter or group of letters taken from the word or phrase....
, but has since acquired a number of other uses as a diacritic
Diacritic

A diacritic is a small sign added to a letter to alter pronunciation or to distinguish between similar words. The term derives from the Greek language d?a???t???? ....
 mark or a character in its own right, and there are a number of Unicode characters for these different roles. In the latter capacity (especially in lexicography
Lexicography

The pursuit of lexicography is divided into two related disciplines:*Practical lexicography is the art or craft of compiling, writing and editing dictionary....
), a tilde is sometimes confused with a swung dash
Dash

A dash is a punctuation mark. It is longer than a hyphen and is used differently. The most common versions of the dash are the en dash and the em dash ....
  which is used in dictionaries to indicate the omission of a word.

Diacritical use

In languages, the tilde is a diacritic
Diacritic

A diacritic is a small sign added to a letter to alter pronunciation or to distinguish between similar words. The term derives from the Greek language d?a???t???? ....
al mark (~) placed over a letter
Letter (alphabet)

A letter is an element in an alphabetic system of writing, such as the Greek alphabet and its descendants. Each letter in the written language is usually associated with one phoneme in the spoken form of the language....
 to indicate a change in pronunciation, such as nasalization
Nasalization

In phonetics, nasalization is the production of a sound while the soft palate is lowered, so that some air escapes through the nose during the production of the sound by the mouth....
.

It was first used in the polytonic orthography
Greek diacritics

Greek orthography has used a variety of diacritics starting in the Hellenistic period. The complex polytonic orthography which notated Ancient Greek phonology was used until 1982, when it was supplanted by the simplified monotonic orthography, which corresponds to Modern Greek phonology, and requires only two diacritics....
 of Ancient Greek
Ancient Greek

Ancient Greek is the historical stage in the development of the Greek language spanning across the Archaic Greece , Classical Greece , and Hellenistic civilization periods of ancient Greece and the classical antiquity....
, as a variant of the circumflex accent, representing a rise in pitch
Pitch accent

Pitch accent is a linguistics term of convenience for a variety of restricted tone systems that use variations in Pitch to give prominence to a syllable or Mora_ within a word....
 followed by a return to standard pitch.

Later, it was used to make abbreviation
Scribal abbreviation

Scribal abbreviations were abbreviations used by ancient and medieval scribes writing in Latin. In modern manuscript editing sigla are sometimes special symbols as described below, or simply abbreviations that may indicate where a particular source manuscript is held, or who copied it....
s in medieval Latin documents. When an ‘n’ or ‘m’ followed a vowel, it was often omitted, and a tilde (i.e., a small ‘n’) was placed over the preceding vowel to indicate the missing letter – compare with the development of the umlaut
Umlaut (diacritic)

The word umlaut is the name of a type of sound shift in spoken language and of the diacritic mark used to represent it Orthography. The diacritic mark comprises a pair of dots or lines placed over the letter that represents the affected Vowel....
 as an abbreviation of ‘e’ – this is the origin of the use of tilde to indicate nasalization. The practice of using the tilde over a vowel to indicate omission of an "n" or "m" continued in printed books in French
French language

French is a Romance language spoken around the world by around 80 million people as first language, by 190 million as second language, and by about another 200 million people as an acquired tongue, with significant speakers in 54 countries....
 as a means of reducing text length until the 17th century. It was also used in Castilian
Portuguese language

Portuguese is a Romance language that originated in what is now Galicia and Portugal. It is derived from the Latin language spoken by the Romanization Pre-Roman peoples of the Iberian Peninsula around 2000 years ago....
 and Spanish
Spanish language

Spanish or Castilian is a Romance languages that originated in northern Spain, and gradually spread in the Kingdom of Castile and evolved into the principal language of government and trade....
. The tilde was also used occasionally to make other abbreviations, such as over the letter "q" to signify the word qué ("what"). In Portuguese
Portuguese language

Portuguese is a Romance language that originated in what is now Galicia and Portugal. It is derived from the Latin language spoken by the Romanization Pre-Roman peoples of the Iberian Peninsula around 2000 years ago....
 the tilde, called by "til", is placed over the letters "a" and "o". The word atenção, attention in english, is spoken "a ten sun uh"--> "a ten çã o".

The tilded "n" ("ñ", "Ñ") developed from the digraph "nn" in Castilian. It is usually regarded as a separate letter called eñe
N

N is the fourteenth letter in the Latin alphabet. Its name in English language is spelled en ....
 (IPA ['e?e]), rather than a letter-diacritic combination. In addition, the word tilde can refer to any diacritic in this language; for example, the acute accent in José is also called a tilde in Castilian. Current languages in which the tilded "n" ("ñ") is used for the palatal nasal
Palatal nasal

The palatal nasal is a type of consonant, used in some Speech communication languages. The symbol in the International Phonetic Alphabet that represents this sound is , and the equivalent X-SAMPA symbol is J....
 consonant include:

  • Basque
    Basque language

    Basque is the language spoken by the Basque people who inhabit the Pyrenees in North-Central Spain and the adjoining region of South-Western France....
  • Galician
    Galician language

    Galician is a language of the Iberian Romance languages branch, spoken in Galicia , an Autonomous communities of Spain located in northwestern Spain, as well as in small bordering zones in the neighbouring autonomous communities of Asturias and Castile and Le?n and in Northern Portugal....
  • Guarani
    Guaraní language

    Guaran? is an indigenous language of South America that belongs to the Tup?-Guaran? subfamily of the Tupian languages. It is one of the official languages of Paraguay , where it is spoken by 94% of the population....
  • Mapudungun
    Mapudungun

    Mapudungun is a language isolate spoken in central Chile and west central Argentina by the Mapuche people. It is also known as Mapudungu, Mapuche, and Araucanian ....
  • Castilian
    Spanish language

    Spanish or Castilian is a Romance languages that originated in northern Spain, and gradually spread in the Kingdom of Castile and evolved into the principal language of government and trade....
  • Tetum
    Tetum language

    Tetum is an Austronesian languages, a national language and one of the two official languages of East Timor. Some of its dialects have been greatly influenced by Portuguese language, the other official language of the country, especially in their vocabulary, but also in aspects of their grammar....


It is also as a small "n" that the tilde originated when written above another letters, marking a Latin "n" which had been elided
Elision

Elision is the omission of one or more sounds in a word or phrase, producing a result that is easier for the speaker to pronounce. Sometimes, sounds may be elided for euphony effect....
 in old Galician-Portuguese. It indicates nasalization of the base vowel: mão "hand", from Lat. manu-; razões "reasons", from Lat. rationes. Current languages and alphabets in which the tilde is used as a sign of nasalization
Nasalization

In phonetics, nasalization is the production of a sound while the soft palate is lowered, so that some air escapes through the nose during the production of the sound by the mouth....
 include:

  • Portuguese
    Portuguese language

    Portuguese is a Romance language that originated in what is now Galicia and Portugal. It is derived from the Latin language spoken by the Romanization Pre-Roman peoples of the Iberian Peninsula around 2000 years ago....
  • Several native languages of South America
    Indigenous languages of the Americas

    Indigenous languages of the Americas are spoken by Indigenous peoples of the Americas from the southern tip of South America to Alaska and Greenland, encompassing the land masses which constitute the Americas....
    , such as Guarani
    Guaraní language

    Guaran? is an indigenous language of South America that belongs to the Tup?-Guaran? subfamily of the Tupian languages. It is one of the official languages of Paraguay , where it is spoken by 94% of the population....
     and Nheengatu
    Nheengatu

    The Nheengatu language, often spelled Nhengatu, is also known by the Portuguese language names l?ngua geral da Amaz?nia and l?ngua geral amaz?nica, both meaning "Amazonian General Language," or even by the Latin lingua brasilica ....
    .
  • In the International Phonetic Alphabet
    International Phonetic Alphabet

    The International Phonetic Alphabet "The acronym 'IPA' strictly refers [...] to the 'International Phonetic Association'. But it is now such a common practice to use the acronym also to refer to the alphabet itself that resistance seems pedantic....
     (IPA) and many other phonetic alphabets. For example, is the transcription of the pronunciation of the word "Lyon" in French.


Languages and alphabets that use the tilde for other purposes:
  • Estonian
    Estonian language

    Estonian is the official language of Estonia, spoken by about 1.1 million people in Estonia and tens of thousands in various ?migr? communities....
    . The symbol "õ" stands for the close-mid back unrounded vowel
    Close-mid back unrounded vowel

    The close-mid back unrounded vowel is a type of vowel sound, used in some spoken languages. Its symbol in the International Phonetic Alphabet is , called "ram's horns"....
    , and it is considered an independent letter.
  • Guarani
    Guaraní language

    Guaran? is an indigenous language of South America that belongs to the Tup?-Guaran? subfamily of the Tupian languages. It is one of the official languages of Paraguay , where it is spoken by 94% of the population....
    . The tilded "G~" (note that G/g with tilde is not available as a precomposed glyph in Unicode
    Unicode

    Unicode is a computing industry standard allowing computers to consistently represent and manipulate Character expressed in most of the world's writing systems....
    ) stands for the velar nasal
    Velar nasal

    The velar nasal is a type of consonantal sound, used in some Speech communication languages. The symbol in the International Phonetic Alphabet that represents this sound is , and the equivalent X-SAMPA symbol is N....
     consonant. Also, the tilded "y" ("?") stands for the nasalized upper central rounded vowel .
  • In the International Phonetic Alphabet
    International Phonetic Alphabet

    The International Phonetic Alphabet "The acronym 'IPA' strictly refers [...] to the 'International Phonetic Association'. But it is now such a common practice to use the acronym also to refer to the alphabet itself that resistance seems pedantic....
     (IPA), the tilde is used through a symbol to mark velarization
    Velarization

    Velarization is a secondary articulation of consonants by which the back of the tongue is raised toward the Soft palate during the articulation of the consonant....
    . For instance, is the Australian English
    Australian English

    Australian English is the form of the English language spoken in Australia....
     pronunciation of "cool", with the "dark l".
  • Vietnamese
    Vietnamese language

    Vietnamese , formerly known under French colonization as Annamese , is the national language and official language language of Vietnam. It is the mother tongue of the Vietnamese people , who constitute 86% of Demographics of Vietnam, and of about three million overseas Vietnamese, most of whom live in the United States....
    . A tilde over a vowel represents a dipping tone
    Tone (linguistics)

    Tone is the use of pitch in language to distinguish lexical or grammatical meaning?that is, to distinguish or inflection words. All languages use pitch to express emotional and other paralinguistic information, and to convey emphasis, contrast, and other such features in what is called intonation , but not all languages use tones to distingu...
     (ngã).


Similar characters

There are a number of similar characters; the Unicode
Unicode

Unicode is a computing industry standard allowing computers to consistently represent and manipulate Character expressed in most of the world's writing systems....
 characters similar to the tilde are:
Character Code point Name Comments
U+007E TILDE
U+02DC SMALL TILDE
~a U+0303 COMBINING TILDE Used for diacritics (shown combined)
U+223C TILDE OPERATOR Used in mathematics
U+223F SINE WAVE
U+2053 SWUNG DASH
U+301C WAVE DASH
U+3030 WAVY DASH


Lexicography

The swung dash is often used in dictionaries to represent a word that was mentioned before and is understood, to save space:




Punctuation


The swung dash (~) is used in various ways in punctuation:

Range

In some languages (though not English), a tilde-like wavy dash may be used as punctuation
Punctuation

Punctuation is everything in written language other than the actual letters or numbers, including punctuation marks , Interword separation and indentation....
 (instead of an unspaced hyphen
Hyphen

A hyphen is a punctuation mark. It is used both to join words and also to separate syllables of a single word. It is often confused with the dash , which are longer and have different uses, and with the minus sign which is also longer....
 or en-dash
Dash

A dash is a punctuation mark. It is longer than a hyphen and is used differently. The most common versions of the dash are the en dash and the em dash ....
) between two number
Number

A number is a mathematical object used in counting and measurement. A notational symbol which represents a number is called a Numeral system, but in common usage the word number is used for both the abstract object and the symbol, as well as for the numeral for the number....
s, to indicate a range
Interval (mathematics)

In mathematics, a interval is a set of real numbers with the property that any number that lies between two numbers in the set is also included in the set....
 rather than subtraction
Subtraction

Subtraction is one of the four basic arithmetic operations; it is the inverse of addition, meaning that if we start with any number and add any number and then subtract the same number we added, we return to the number we started with....
 or a hyphenated number (such as a part number or model number). For example, 12~15 means "12 to 15", ~3 means "up to three" and 100~ means "100 and greater." Japanese and other East Asian languages
East Asian languages

East Asian languages describe two notional groupings of languages in East Asia and Southeast Asia Asia:* Languages which have been greatly influenced by Classical Chinese and the Written Chinese, in particular Chinese language, Japanese language, Korean language and Vietnamese language ....
 almost always use this convention, but it is often done for clarity in some other languages as well. Chinese
Chinese language

Chinese or the Sinitic language is a language family consisting of language mutually unintelligible to varying degrees. Originally the indigenous languages spoken by the Han Chinese in China, it forms one of the two branches of Sino-Tibetan languages of languages....
 uses the wavy dash and full-width em dash interchangeably for this purpose. In English, the tilde is often used to express ranges and model numbers in electronics
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
 but rarely in formal grammar or type-set documents, as a wavy dash preceding a number sometimes represents an approximation (see the Mathematics section, below).

Japanese

The , (Unicode U+301C) is used for various purposes in Japanese.

In Japanese, the wave dash is also used to separate a title and a subtitle in the same line, as a colon
Colon (punctuation)

The colon is a punctuation mark, consisting of two equally sized dots centered on the same vertical line....
 is used in English.

When used in conversations via email or instant messenger it may be used as a sarcasm mark
Sarcasm mark

A sarcasm mark or sarcasm point identifies text as being derogatory or irony. Although never known traditionally in Ethiopia, a sarcasm mark has been introduced in the Unicode set of Ethiopian characters Ethiopic languages, ....
 or, in East Asia, as an extension of the final syllable to produce the same effect as “whyyyyyy” with “why??”. Used at the end of a word or sentence in text communications, it often denotes something said in a sing-song voice, or similar to the use in instant messengers and email, depending on context.

Mathematics

In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, the tilde operator (Unicode U+223C), sometimes pronounced “twiddle”, is often used to denote an equivalence relation
Equivalence relation

In mathematics, an equivalence relation is, loosely, a binary relation on a Set that specifies how to split up the set into subsets such that every element of the larger set is in exactly one of the subsets....
 between two objects. Thus “x ~ y” means “x is equivalent to y”. (Note that this is usually quite different from stating that x equals
Equality (mathematics)

Equality is the paradigmatic example of the more general concept of equivalence relations on a set: those binary relations which are reflexive relation, symmetric relation, and transitive relation....
 y.) The expression “x ~ y” is sometimes read aloud as “x twiddles y”, perhaps as an analogue to the verbal expression of “x = y”.


There are two common contexts in which “~” is used to denote particular equivalence relations: It can be used to denote the asymptotical equality
Asymptotic analysis

In pure mathematics and applied mathematics, particularly the analysis of algorithms, real analysis, and engineering, asymptotic analysis is a method of describing Limit ing behaviour....
 of two functions. For example, f(x) ~ g(x), means that limx?8 f(x)/g(x) = 1. Additionally, in statistics
Statistics

Statistics is a Mathematics pertaining to the collection, analysis, interpretation or explanation, and presentation of data. It also provides tools for prediction and forecasting based on data....
 and probability theory
Probability theory

Probability theory is the branch of mathematics concerned with analysis of Statistical randomness phenomena. The central objects of probability theory are random variables, stochastic processes, and event s: mathematical abstractions of determinism events or measured quantities that may either be single occurrences or evolve over time in an a...
, ~ means “is distributed as”. See random variable
Random variable

In mathematics, random variables are used in the study of Randomness and probability. They were developed to assist in the analysis of Game of chance, stochastic events, and the results of experiment by capturing only the mathematical properties necessary to answer probability questions....
.

There is also a triple-tilde, which is often used to show congruence
Congruence (geometry)

In geometry, two sets of point are called congruent if one can be transformed into the other by an isometry, i.e., a combination of translation s, rotations and reflection s....
, an equivalence relation in geometry.

A tilde can also be used to represent Similarity
Similarity

Similarity is some degree of symmetry in either analogy and resemblance between two or more concepts or physical objects. The notion of similarity rests either on exact or approximate repetitions of patterns in the comparison items....
. In modern Geometry
Geometry

Geometry arose as the field of knowledge dealing with spatial relationships. Geometry was one of the two fields of pre-modern mathematics, the other being the study of numbers....
, polygons can be similar to one another, and similarity can be expressed as e.g. Triangle
Triangle

A triangle is one of the basic shapes of geometry: a polygon with three corners or wikt:vertex and three sides or edges which are line segments....
 ABC ~ (is similar to) Triangle
Triangle

A triangle is one of the basic shapes of geometry: a polygon with three corners or wikt:vertex and three sides or edges which are line segments....
 DEF. This is often used to relate polygons that have a geometric similarity to others, such as when using ratios and proportions to compare polygons.

In English
English language

English is a West Germanic language that originated in Anglo-Saxon England and has lingua franca status in many parts of the world as a result of the military, economic, scientific, political and cultural influence of the British Empire in the 18th, 19th and early 20th centuries and that of the United States from the mid 20th century onwa...
 it is sometimes used to represent approximation
Approximation

An approximation is an Accuracy and precision representation of something that is still close enough to be useful. Although approximation is most often applied to numbers, it is also frequently applied to such things as Function , shapes, and physical laws....
, for example ~10 would mean “approximately 10”. Similar symbols are used in mathematics, such as in p ˜ 3.14, “p
Pi

Pi or p is a mathematical constant whose value is the ratio of any circle's circumference to its diameter in Euclidean geometry; this is the same value as the ratio of a circle's area to the square of its radius....
 is about equal to 3.14”. Since the double-tilde (˜; HTML entity ≈) is not available from the keyboard except on the Macintosh (where it is Option-x on English layouts
Keyboard layout

A keyboard layout is any specific mechanical, visual, or functional arrangement of the keys, legends, or key?meaning associations of a Computer keyboard, typewriter, or other alphanumeric keyboard keyboard....
), the tilde (~) has become a substitute for use in typed
Typing

Typing is the process of inputting text into a device, such as a typewriter, computer, or a calculator, by pressing keys on a Computer keyboard....
 entry.

A tilde is also used to indicate “approximately equal to” (e.g. 1.902 ~= 2). This usage probably developed as a typed alternative to the used for the same purpose in written mathematics, which is an equal sign (=) with the upper bar replaced by a bar with an upward hump or loop in the middle or, sometimes, a tilde. [Also see Approximation
Approximation

An approximation is an Accuracy and precision representation of something that is still close enough to be useful. Although approximation is most often applied to numbers, it is also frequently applied to such things as Function , shapes, and physical laws....
]. The symbol "˜" is also used for this purpose.

A tilde can be used on its own between two expressions (e.g. a ~ 0.1) to state that the two are of the same order of magnitude
Order of magnitude

An order of magnitude is the class of scale or magnitude of any amount, where each class contains values of a fixed Geometric progression to the class preceding it....
.

A tilde placed below a letter in mathematics can represent a vector quantity.

Logic

In written mathematical logic
Logic

Logic is the study of the principles of valid demonstration and inference. Logic is a branch of philosophy, a part of the classical Trivium . The word derives from Greek language ?????? , fem....
, it represents negation
Negation

In logic and mathematics, negation or not is an operation on logical values, for example, the logical value of a proposition, that sends true to false and false to true....
 (e.g. “~p” equals “not p”). Modern use has been replacing the tilde with the negation symbol (¬) for this purpose, to avoid confusion with equivalence relation
Equivalence relation

In mathematics, an equivalence relation is, loosely, a binary relation on a Set that specifies how to split up the set into subsets such that every element of the larger set is in exactly one of the subsets....
s.

Economics

For relations involving preference, economists sometimes use the tilde to represent indifference between two or more bundles of goods. For example, to say that a consumer is indifferent between bundles x and y, an economist would write x ~ y.

Electronics

It can approximate the sine wave symbol (U+
Unicode

Unicode is a computing industry standard allowing computers to consistently represent and manipulate Character expressed in most of the world's writing systems....
223F), which is used in electronics
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
 to indicate alternating current
Alternating current

In alternating current the movement of electric charge periodically reverses direction. An electric charge would for instance move forward, then backward, then forward, then backward, over and over again....
, in place of +, -, or for direct current
Direct current

Direct current is the unidirectional flow of electric charge. Direct current is produced by such sources as battery , thermocouples, solar cells, and commutator-type electric machines of the dynamo type....
.

Computing


Directories and URLs

In Unix shell
Unix shell

A Unix shell is a command-line interpreter and script host that provides a traditional user interface for the Unix operating system and for Unix-like systems....
s, the tilde indicates the current user's home directory
Home directory

In multi-user operating systems, a home directory is a directory which contains the personal Computer file of a given User of the system.Separating user data from system-wide data avoids redundancy and makes backups of important files relatively simple....
 (e.g., /home/username). This practice derives from the Lear-Siegler ADM-3A
ADM-3A

The ADM-3A was one of the first computer terminals manufactured by Lear Siegler, first produced in 1975. It had a 12 inch screen displaying 12 or 24 lines of 80 characters....
 terminal in common use during the 1970s, which happened to have the tilde symbol and the word "Home" (for moving the cursor to the upper left) on the same key. When prepended to a particular username, the tilde indicates that user's home directory (e.g., ~janedoe for the home directory of user janedoe, typically /home/janedoe). When some Unix shell commands overwrite a file, they can be made to keep a backup by renaming the original file as filename~.

Used in URLs
Uniform Resource Locator

In Information technology, a Uniform Resource Locator is a type of Uniform Resource Identifier that specifies where an identified resource is available and the mechanism for retrieving it....
 on the World Wide Web
World Wide Web

The World Wide Web is a very large set of interlinked hypertext documents accessed via the Internet. With a Web browser, one can view Web pages that may contain writing, s, videos, and other multimedia and navigate between them using hyperlinks....
, it often denotes a personal website on a Unix
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
-based server. For example, http://www.example.com/~johndoe/ might be the personal web site of John Doe. This mimics the Unix shell usage of the tilde. However, when accessed from the web, file access is usually directed to a subdirectory in the user's home directory, such as /home/username/public_html or /home/username/www.

In URLs, the characters %7E (or %7e) may substitute a tilde if an input device lacks a tilde key. Thus, http://www.example.com/~johndoe/ and http://www.example.com/%7Ejohndoe/ will behave in the same manner.

Computer languages

The tilde is used in the Awk programming language
Programming language

A programming language is a machine-readable artificial language designed to express computations that can be performed by a machine, particularly a computer....
 as part of the pattern match operators for regular expression
Regular expression

In computing, regular expressions provide a concise and flexible means for identifying strings of text of interest, such as particular characters, words, or patterns of characters....
s:

  • variable ~ /regex/ returns true if the variable is matched.
  • variable !~ /regex/ returns false if the variable is matched.


A variant of this, with the plain tilde replaced with =~, was adopted in Perl
Perl

In computer programming, Perl is a high-level programming language, List of programming languages by category, Interpreter , dynamic programming language....
, and this semi-standardization has led to the use of these operators in other programming languages, such as Ruby or the SQL
SQL

SQL is a database computer language designed for the retrieval and management of data in relational database management systems , database schema creation and modification, and database object access control management....
 variant of the database PostgreSQL
PostgreSQL

PostgreSQL is an object-relational database management system . It is released under a BSD licenses and is thus free software. As with many other open-source programs, PostgreSQL is not controlled by any single company, but has a global community of developers and companies to develop it....
.

In the C
C (programming language)

C is a general-purpose computer programming language originally developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories to implement the Unix operating system....
, C++
C++

C++ is a general-purpose programming language. It is regarded as a middle-level language, as it comprises a combination of both high-level programming language and low-level programming language language features....
 and C#
C

C or c is a consonant in Esperanto orthography, representing a voiceless postalveolar affricate , and is equivalent to the voiceless postalveolar affricate, , or the voiceless retroflex affricate, ...
 programming languages, the tilde character is used as an operator
Operators in C and C++

This is a list of operator s in the C++ and C . All the operators listed exist in C++; the third column indicates whether an operator is also present in C....
 to invert all bit
Bit

A bit is a binary numeral system numerical digit, taking a value of either 0 or 1. Binary digits are a basic unit of information Computer data storage and transmission in digital computing and digital information theory....
s of an integer
Integer

The integers are natural numbers including 0 and their negative and non-negative numberss . They are numbers that can be written without a fractional or decimal component, and fall within the set ....
 (bitwise NOT), following the notation in logic (an ! causes a logical NOT, instead). In C++, the tilde is also used as the first character in a class
Class (computer science)

In object-oriented programming, a class is a programming language construct that is used as a blueprint to create Object s. This blueprint includes Attribute s and Method s that the created objects all share....
's method
Method (computer science)

In object-oriented programming, a method is a subroutine that is exclusively associated either with a class or with an object . Like a procedure in procedural programming languages, a method usually consists of a sequence of statement to perform an action, a set of input parameter to customize those actions, and possibly an output value...
 name (where the rest of the name must be the same name as the class) to indicate a destructor
Destructor (computer science)

In object-oriented programming, a destructor is a method which is automatically invoked when the object is destroyed. Its main purpose is to clean up and to free the Resource which were acquired by the object along its life cycle and unlink it from other objects or resources invalidating any references in the process....
 - a special method which is called at the end of the object's life
Object lifetime

In computer science, the object lifetime of an object in object-oriented programming is the time between an object's creation till the object is no longer used, and is destructed or freed....
.

In the D programming language, the tilde is used as an array
Array

In computer science, an array is a data structure consisting of a group of element s that are accessed by index . In most programming languages each element has the same data type and the array occupies a contiguous area of computer memory....
 concatenation
Concatenation

In computer programming, string concatenation is the operation of joining two character string end to end. For example, the strings "snow" and "ball" may be concatenated to give "snowball"....
 operator, as well as to indicate an object destructor.

In the CSS
Cascading Style Sheets

Cascading Style Sheets is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including Scalable Vector Graphics and XUL....
 stylesheet language, the tilde is used for the indirect adjacent combinator as part of a selector.

In the Inform
Inform

Inform is a programming language and design system for interactive fiction originally created in 1993 by Graham Nelson. Inform can generate programs designed for the Z-machine or Glulx virtual machines....
 programming language, the tilde is used to indicate a quotation mark inside a quoted string.

In Max/MSP, a tilde is used to denote objects that process at the computer's sampling rate, i.e. mainly those that deal with sound.

In "text mode" of the LaTeX
LaTeX

LaTeX is a document markup language and Word processor for the TeX typesetting program. Within the typesetting system, its name is styled as ....
 typesetting language a stand-alone tilde can be obtained with \~ and for use as a diacritics, e.g., like \~ rendering "ñ". A stand-alone tilde can also be obtained by using \textasciitilde. In "math mode" a stand-alone tilde can be written as \tilde and as diacritics, e.g., \tilde. For a wider tilde the \widetilde can be used. The \sim command produce a tilde-like character that is often used in probability
Probability

Probability, or wikt:chance, is a way of expressing knowledge or belief that an Event will occur or has occurred. In mathematics the concept has been given an exact meaning in probability theory, that is used extensively in such areas of study as mathematics, statistics, finance, gambling, science, and philosophy to draw conclusions about t...
 mathematical equations, and the double-tilde is obtained with \approx. In both text and math mode a tilde on its own (~) is rendering a white space with no line breaking.

The Emacs
Emacs

Emacs is a class of feature-rich text editors, usually characterized by their extensibility. Emacs has, perhaps, more editing commands than any other editor or word processor, numbering over 1,000....
 text editor forms the names used for backup files by appending a tilde to the original file name.

Microsoft filenames

The tilde was part of Microsoft
Microsoft

Microsoft Corporation is a multinational corporation computer technology corporation that develops, manufactures, licenses, and supports a wide range of computer software products for computing devices....
's filename mangling
Filename mangling

The process of name mangling, in computing, involves a re-writing of the file name for compatibility at the operating system level. It occurs when a filename on a filesystem appears in a form incompatible with the operating system accessing it....
 scheme when it developed the VFAT
File Allocation Table

File Allocation Table or FAT is a computer file system architecture now widely used on most computer systems and most memory cards, such as those used with digital cameras....
 file system. This upgrade introduced long filenames to Microsoft Windows
Microsoft Windows

Microsoft Windows is a series of software operating systems and graphical user interfaces produced by Microsoft. Microsoft first introduced an operating environment named Windows in November 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces ....
, and permitted additional characters (such as the space) to be part of filenames, which were prohibited in previous versions. Programs written prior to this development could only access filenames in the so-called 8.3 format—the filenames consisted of a maximum of eight alphanumeric characters, followed by a period, followed by three more alphanumeric characters. In order to permit these legacy programs to access files in the VFAT file system, each file had to be given two names—one long, more descriptive one, and one that conformed to the 8.3 format. This was accomplished with a name-mangling scheme in which the first six characters of the filename are followed by a tilde and a digit. For example, "Program Files" becomes "PROGRA~1".

Also, the tilde symbol is used to prefix hidden temporary files that are created when a document is opened in Windows. For example, when you open a Word document called "Document1.doc," a file called "~$cument1.doc" is created in the same directory. This file contains information about which user has the file open, to prevent multiple users from attempting to change a document at the same time.

Games


In many games, the tilde key (on U.S. English keyboards) is used to open the developer console. This is true for games such as Halo CE
Halo CE

'Halo: CE' and 'Halo CE' can refer to:*The video game ...
, Quake
Quake

Quake is a first-person shooter computer game that was released by id Software on June 22, 1996. It was the first game in the popular Quake of computer and video games....
, Half-Life 2
Half-Life 2

Half-Life 2 is a science fiction first-person shooter Video game and the sequel to the highly acclaimed Half-Life . It was developed by Valve Corporation and was released on November 16, 2004, following a protracted five-year, $40 million development cycle during which the game?s source code was leaked to the Internet....
, Soldier of Fortune II: Double Helix
Soldier of Fortune II: Double Helix

Soldier of Fortune II: Double Helix is a video game created by Raven Software, a sequel to Soldier of Fortune . It was developed using the id Tech 3 engine....
 , Unreal
Unreal

Unreal is a first-person shooter computer game developed by Epic Games and Digital Extremes and published by GT Interactive in May 1998. It was powered by an original gameplay and computer engine that Unreal Engine, one that had been in development for over three years in founder Tim Sweeney 's garage before the game was released....
 and Counter-Strike
Counter-Strike

Counter-Strike is a tactical shooter first-person shooter video game which originated from a Half-Life Game mod by Minh Le and Jess Cliffe....


Other uses


Computer programmers use the tilde in various ways and often call the symbol (as opposed to the diacritic) a squiggle or a twiddle. According to the Jargon File
Jargon File

The Jargon File is a glossary of hacker slang. The original Jargon File was a collection of hacker slang from technical cultures such as the MIT Artificial Intelligence Laboratory, the Stanford AI Lab , and others of the old ARPANET Artificial Intelligence/Lisp programming language/PDP-10 communities, including Bolt, Beranek and Newman, Carn...
, other synonyms sometimes used in programming include not, approx, wiggle, enyay (after eñe
N

N is the fourteenth letter in the Latin alphabet. Its name in English language is spelled en ....
) and (humorously) sqiggle .

In MediaWiki
MediaWiki

MediaWiki is a World Wide Web wiki software application used by all projects of the Wikimedia Foundation, all wikis hosted by Wikia, and many other wikis, including some of the largest and most popular ones....
, three consecutive tildes (~~~) create a "signature" (which can be customised by the user), five consecutive tildes (~~~~~) result in the time in UTC, and four consecutive tildes (~~~~) result in the signature followed by the time in UTC.

Another recent use of the tilde is to indicate either a "melodic" pronunciation, or a commonly recognized vocal inflection by enclosing a word or entire phrase between a pair of tilde (similar to the use of quotation marks) which indicates that such word or phrase is to be either sung as a tune, ~Happy birthday to you...~, pronounced as a jeer or taunt, ~Nyah, nyah!~, or with a common change in pitch, ~What-EVER!~.

In many online or internet communities, the tilde is used to show a sarcastic or sometimes playful connotation for the word or words to follow it.

Juggling notation

In the juggling
Juggling

Juggling is a physical human skill involving the movement of one or more objects, usually through the air, for entertainment . The most recognizable form of juggling is toss juggling, where the juggler throws objects through the air....
 notation
Juggling Notation

It has often been said, of many Toss juggling patterns, that it is "easier done than said", while it might be easy to learn a given manoeuvre and demonstrate it for others, it is often much harder to communicate the idea accurately using speech or plain text....
 system Beatmap, tilde can be added to either "hand" in a pair of fields to say "cross the arms with this hand on top". Mills Mess
Mills Mess

In juggling, the Mills Mess is a popular toss juggling pattern, typically performed with three balls although the number and objects can be different....
 is thus represented as (~2x,1)(1,2x)(2x,~1)*.

Vertical tilde

Unicode
Unicode

Unicode is a computing industry standard allowing computers to consistently represent and manipulate Character expressed in most of the world's writing systems....
 has a combining vertical tilde character, at U+033E . It is used to indicate middle tone in the Lithuanian language
Lithuanian language

Lithuanian is the official state language of Lithuania and is recognised as one of the official languages of the European Union. There are about 2.96 million native Lithuanian speakers in Lithuania and about 170,000 abroad....
 and for transliteration of the Cyrillic palatalization sign (U+484 ).

Tilde with keyboards


Where a tilde is on the keyboard depends on the computer's language settings according to the following chart. If the keyboard does not have the Alt Gr key it is the right Alt
Alt

ALT may stand for:*ALT , a group of musicians, the members of which are Andy White, Liam O'Maonlai and Tim Finn.*ALT Linux, a distribution of Linux computer software, or a team of developers that work on the software....
 key, and with Macintosh
Macintosh

File:Imac alu.pngMacintosh, commonly shortened to Mac, is a brand name which covers several lines of personal computers designed, developed, and marketed by Apple Inc....
 either of the Alt/Option
Option key

The 'Option key' is a modifier key present on Apple keyboards. It is located between the Control key and Command key on a typical Mac keyboard. For desktop keyboards, there are usually two, while a laptop may have only one to make room for the arrow keys....
 keys. If these fail, the Alt code for tilde is 126 for US and European keyboards.

>
CountryA single tilde ~Tilde over a letter, for example ã
English (UK
United Kingdom

The United Kingdom of Great Britain and Northern Ireland, commonly known as the United Kingdom , the UK or Britain,is a sovereign state located off the northwestern coast of continental Europe....
)
Shift + #
English (US
United States

The United States of America is a Federal government constitutional republic comprising U.S. state and a federal district. The country is situated mostly in central North America, where its Contiguous United States and Washington, D.C., the Capital districts and territories, lie between the Pacific Ocean and Atlantic Oceans, Borders of the U...
)
Shift + `
English
English language

English is a West Germanic language that originated in Anglo-Saxon England and has lingua franca status in many parts of the world as a result of the military, economic, scientific, political and cultural influence of the British Empire in the 18th, 19th and early 20th centuries and that of the United States from the mid 20th century onwa...
 (Australia
Australia

Australia, officially the Commonwealth of Australia, is a country in the southern hemisphere comprising the Australia of the world's smallest continent, the major island of Tasmania, and numerous list of islands of Australia in the Indian Ocean and Pacific Oceans....
)
Shift + `
English (Canada
Canada

Canada is a country occupying most of northern North America, extending from the Atlantic Ocean in the east to the Pacific Ocean in the west and northward into the Arctic Ocean....
)
Shift + `
French
French language

French is a Romance language spoken around the world by around 80 million people as first language, by 190 million as second language, and by about another 200 million people as an acquired tongue, with significant speakers in 54 countries....
 (Canada
Canada

Canada is a country occupying most of northern North America, extending from the Atlantic Ocean in the east to the Pacific Ocean in the west and northward into the Arctic Ocean....
)
Alt Gr + ç, after them space bar (for two tildes at once Alt Gr + two times ç ).Alt Gr + ç, after them the letter.
French (France
France

France , officially the French Republic , is a country whose Metropolitan France is located in Western Europe and that also comprises various Overseas departments and territories of France....
)
Alt Gr + é, after them space bar (for two tildes at once Alt Gr + two times é ).Alt Gr + é, after them the letter.
French (Switzerland
Switzerland

Switzerland is a landlocked Swiss Alps country of roughly 7.7 million people in Western Europe with an area of 41,285 km?. Switzerland is a federal republic consisting of 26 states called Cantons of Switzerland....
)
Alt Gr + ^, after them space bar (for two tildes at once Alt Gr + two times ^ ).Alt Gr + ^, after them the letter.
German
German language

German is a West Germanic languages, thus related to and classified alongside English language and Dutch language. It is one of the world's world language and the most widely spoken mother tongue in the European Union....
 (Germany
Germany

Germany , officially the Federal Republic of Germany , is a country in Central Europe. It is bordered to the north by the North Sea, Denmark, and the Baltic Sea; to the east by Poland and the Czech Republic; to the south by Austria and Switzerland; and to the west by France, Luxembourg, Belgium, and the Netherlands....
)
Alt Gr + +
German (Switzerland
Switzerland

Switzerland is a landlocked Swiss Alps country of roughly 7.7 million people in Western Europe with an area of 41,285 km?. Switzerland is a federal republic consisting of 26 states called Cantons of Switzerland....
)
Alt Gr + ^, after them space bar (for two tildes at once Alt Gr + two times ^ ).Alt Gr + ^, after them the letter.
Hindi
Hindi

Standard Hindi, also known as High Hindi, Nagari Hindi or Literary Hindi is a Standard language register of Hindi. It is one of the 22 official languages of India, and is used, along with English language, for administration of the central government....
 (India
India

India, officially the Republic of India , is a country in South Asia. It is the List of countries and outlying territories by total area country by geographical area, the List of countries by population country, and the most populous liberal democracy in the world....
)
Shift + Alt Gr + the key on the left from 1 .
Icelandic
Icelandic language

Icelandic is a North Germanic languages, the language of Iceland. Its closest relative is Faroese language and Norwegian dialects such as Telemark dialect and Sognam?l....
Alt Gr + ' (same key as ?).
Italian
Italian language

Italian is a Romance languages spoken by about 63 million people as a first language, primarily in Italy. In Switzerland, Italian is one of four Linguistic geography of Switzerlands....
Alt + 1 + 2 + 6 (on numeric keypad with Bloc Num)
Norwegian
Norwegian language

Norwegian is a North Germanic languages language spoken primarily in Norway, where it is an official language. It is also spoken as a second language among Norwegian-Americans in the United States of America, especially in the central northern states....
Alt Gr + ¨, after them space bar (for two tildes at once Alt Gr + two times ¨ ).Alt Gr + ¨, after them the letter.
Polish
Polish language

Polish , an official language of Poland, has the largest number of speakers of any West Slavic languages. Polish-speakers use the language in a uniform manner through most of Poland, and it has a regular orthography....
Shift + `
Spanish
Spanish language

Spanish or Castilian is a Romance languages that originated in northern Spain, and gradually spread in the Kingdom of Castile and evolved into the principal language of government and trade....
Alt Gr + 4, after them space bar (for two tildes at once Alt Gr + two times 4 ).Alt Gr + 4, after them the letter.
Swedish
Swedish language

Swedish is a North Germanic languages language, spoken by around 10 million people, predominantly in Sweden and parts of Finland, especially along the coast and on the ?land islands....
 and Finnish
Finnish language

Finnish is the language spoken by the majority of the population in Finland and by Finnish people outside of Finland. It is one of the official languages of Finland and an official minority language in Sweden....
Alt Gr + ¨, after them space bar (for two tildes at once Alt Gr + two times ¨ ).Alt Gr + ¨, after them the letter.
Portuguese
Portuguese language

Portuguese is a Romance language that originated in what is now Galicia and Portugal. It is derived from the Latin language spoken by the Romanization Pre-Roman peoples of the Iberian Peninsula around 2000 years ago....
~ + space bar (for two tildes at once ~ + ~).~, after it the letter.
Turkish
Turkish language

Turkish is a language spoken by over 63 million people worldwide, making it the most commonly spoken of the Turkic languages. Its speakers are located predominantly in Turkey and Cyprus, with smaller groups in Iraq, Greece, Bulgaria, the Republic of Macedonia, Kosovo, Albania and other parts of Eastern Europe....
Alt Gr + ü, after them space bar (for two tildes at once Alt Gr + two times ü ).Alt Gr + ü, after them the letter.


See also


  • Circumflex
    Circumflex

    The circumflex is a diacritic mark used in written Serbian language, Croatian language, Esperanto, French language, West Frisian language, Norwegian language, Romanian language, Slovak language, Vietnamese language, Romaji, Romanization of Persian, Welsh language, Portuguese language, Italian language, Afrikaans language, Turkish language...
  • Punctuation
    Punctuation

    Punctuation is everything in written language other than the actual letters or numbers, including punctuation marks , Interword separation and indentation....
  • Special characters
    Special Characters

    Special characters have been given pronunciations similar to letters and numbers in a radio alphabet. The most common pronunciations originated with users of Unix systems....
  • Tittle
    Tittle

    A tittle is a small distinguishing mark, such as a diacritic or the dot on a lowercase i or j. The tittle is an integral part of the glyph of i and j, but dot s can appear over other letters in various languages....


External links