The tilde (~) is a grapheme with several uses. The name of the character comes from Spanish, from the Latin titulus meaning a title or superscription, and is pronounced , in English, or , in Spanish. It was originally written over a letter as a mark of abbreviation (see below), but has since acquired a number of other uses as a diacritic mark or a character in its own right. In the latter capacity (especially in lexicography) it is also sometimes known as the swung dash (usually lengthened to ⁓).
In languages, the tilde is a diacritic mark (~) placed over a letter to indicate a change in pronunciation, such as nasalisation. It was originally used to make abbreviations in 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 loss of the nasal. 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 as a means of reducing text length until the 17th century. The tilde was also used occasionally over other letters to indicate other abbreviations, such as over the letter "q" to signify the word "que" (fr. "that").
In Estonian, õ is a separate letter, representing a separate vowel sound.
In the polytonic orthography of Greek, the tilde appears as a variant of the circumflex accent, representing a rise in pitch followed by a return to standard pitch.
In Portuguese and in various South American Indigenous languages, such as Guarani, the tilde marks a nasal vowel.
In Spanish and Galician, tilde over n (ñ) is a separate letter (called eñe) and is a palatal n (IPA ). This phoneme is written nh in Portuguese, gn in French and Italian, ny in Catalan, Hungarian and Swahili, ň in Czech, nj in Serbo-Croatian, and ń in Polish. The sound is that of the "gn" in "lasagna" and the "ni" sound in "onion" and "union" in many dialects of English. The Spanish word tilde refers to any accent mark placed over a vowel. For example, the acute accent in the word Olé is also called a tilde.
In Vietnamese, a tilde over a vowel represents a dipping (ngã) tone.
In the International Phonetic Alphabet (IPA), the tilde is used over a symbol to mark nasalization and through a symbol to mark velarization. That is, is the French city Lyon, and is the Australian English pronunciation of "cool", with the "dark l".
In English it is often used to represent approximation, for example ~10 would mean "approximately 10". Similar symbols are used in mathematics, such as in π ≈ 3.14, "π is about equal to 3.14". Since the double-tilde (≈) is not available from the keyboard except on the Macintosh (where it is Option-x), the tilde (~) became a substitute for use in typed entry. There is also a triple-tilde (≋), which is used to show congruence.
In mathematical logic, ~ is used to represent negation of a proposition, thus ~p means "not p".
In statistics and probability theory, ~ means "is distributed as". See random variable.
Used in URLs on the World Wide Web, it often denotes a personal website on a Unix-based server. For example,
In URLs, the characters %7E (or %7e) may substitute a tilde if an input device lacks a tilde key. Thus,
$a =~ /regex/ returns true if the variable is matched.
$a !~ /regex/ returns false if the variable is matched.
The popularity of Perl's regular expression and syntax has led to the use of these operators in other programming languages, such as Ruby.
In the C and C++ programming languages, the tilde character is used to invert the bits of an integer. In C++, the tilde is also used as the first character in a class's method name (where the rest of the name must be the same name as the class) to indicate a destructor - a special method which is called at the end of the object's life.
In the D programming language, the tilde is used as an array concatenation operator, as well as to indicate an object destructor.
In the CSS stylesheet language, the tilde is used for the indirect adjacent combinator as part of a selector.
In the Inform programming language, the tilde is used to indicate a quotation mark inside a quoted string.
In "text mode" of the LaTeX typesetting language a stand-alone tilde can be obtained with \~{} and for use as a diacritics, e.g., like \~{n} rendering "ñ".
In "math mode" a stand-alone tilde can be written as \tilde{~} and as diacritics, e.g., \tilde{x}. For a wider tilde the \widetilde can be used. The \sim command produce a tilde-like character that is often used in probability 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 text editor forms the names used for backup files by appending a tilde to the original file name.
See History of the tilde for a history of how the tilde came to become part of the standard computer character sets.
In Google search, the tilde entered before a search query word displays listings with that word and synonyms of it. *
To type a tilde on a Spanish keyboard, you can use AltGr+4. On the Macintosh keyboard, Option-n followed by another letter places the tilde over that letter.
On most Windows diagnostic programs a tilde is put infront of the processor speed as a way of saying approximately, as in e.g. Processor Speed : ~2795MHz.
In IRC, a tilde is a rank of administration symbol for the founder of a channel.
In MediaWikis, four tildes is a placeholder for information about someone who left an edit, which is automatically filled in by MediaWiki.
In many computer games (e.g. Counter Strike), the tilde is used to bring up the console.
Tilde is also an often used symbol in order to stress an argument.
In many instances (some Asian image boards and lately the anime fandom) the tilde is used to make a word or phrase look cute, more feminine or pleasant. "Hello~~" Some theorize that it came from the above "typo" etymology, but another theory is that it derives from a similar looking character used in Japanese to lengthen vowels.
The tilde is also used in some comic books or other writings to extend the sound of the last syllable of a word. Example the phrase "Brian NO!~" would be pronounced "Brian NOOOOOOOOOOO!".
Diacritics | Punctuation | Typography
Tildenn | Tilde | Tilde | Tildo | Tilde | Tilet | مدک | Tilde | Til | Tilda | Tilde | チルダ | Tilde | Tylda | Til | Тильда | ~ | Tilde