What are these symbols on my keyboard | ¬ ?
I just don't know what these symbols are for and I don't know if they have a particular name... Does anybody know it? This | and this one ¬
3 Answers
| Symbol | Name |
| ¬ | NOT sign, angled dash |
| | | Vertical bar, Vertical line, pipe, bar, absolute value |
The "¬" is used in boolean math as a unary operator (NOT sign)
As Kevin has mentioned the "|" is used in programming languages as a logical operator as well (However, in this sense I have usually heard it referred to as a "pipe." Different strokes for different folks I suppose.). In other mathematical applications it is used as the sign for the "absolute value" of a number.
For example:
| Application | Name | Example | What it means |
| Mathematics | Absolute value | |-3| = 3 | The absolute value of negative three is three. |
| Programming (C, C++, Java, etc) | logical OR (binary operator) | if(a==7 || b>a){ | If the value of 'a' is 7 OR if the value of b is greater than the value of 'a' (then some function will be performed) |
| Boolean logic | NOT | ¬0 = 1 | NOT 0 is 1 (NOT 'false' is 'true') |
These references might be of some use to you
I use | all the time writing software, but I can't think of a use for it in any language I know. We call it the vertical bar. In many programming languages it's used for logical and arithmetic OR operations.
My keyboard doesn't have that other symbol.
Oh Kevin mate !!! just when I thought i had a handle on things and was begining to
at least know the meaning of life, you go and throw a loop at me . " Logical and
arithmetic OR operations " Strewth mate ! You will say you know the answer to 42
next . I am still trying to get over being beaten by the flamin pomms ,and you
go and drop me into it up to me arm pits ," fair suck of the sav mate".