Home
Q&A
What are these symbols on my keyboard | ¬ ?

What are these symbols on my keyboard | ¬ ?

1
vote

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 ¬

2545 views
updated Dec 30, 2010
edited by AntMexico
posted by AntMexico

3 Answers

6
votes

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

Vertical Line

Not sign

Boolean logic

updated Dec 30, 2010
edited by Izanoni1
posted by Izanoni1
Muchas gracias ;) - AntMexico, Dec 30, 2010
I give up , I thought that Dr Who was a myth , he lives and breaths. You are a wonder mate ! - ray76, Dec 30, 2010
Very thorough! - sv2qp, Dec 30, 2010
Sorry Ray–I didn't mean to confuse.... No 'Who of wonder' here, jeje....really just more of a dabbler of sorts - Izanoni1, Dec 30, 2010
That's true, | is used for piping in Unix and DOS. Being a programmer, I use ! for NOT. I don't even know how to type the angled doohickey. - KevinB, Dec 30, 2010
2
votes

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.

updated Dec 30, 2010
posted by KevinB
Thanks a lot KevinB ;) - AntMexico, Dec 29, 2010
0
votes

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".

updated Dec 30, 2010
posted by ray76
The answer is easy. It's the question that's hard. - KevinB, Dec 30, 2010