-
Notifications
You must be signed in to change notification settings - Fork 0
Mathematical Operators
Matt Dickenson edited this page Jan 24, 2015
·
3 revisions
! ("bang", aka "exclamation point"); ASCII: 33
, Unicode: U+0021
, HTML: !
- Factorial:
x!
denotes the factorial ofx
, which denotes the product ofx
and all positive integers less thanx
. For example,4! = 4 × 3 × 2 × 1 = 24
. - Negation: in logical notation
!x
is typically read as "not x", meaning the opposite ofx
. For example, ifx
is a true proposition, then!x
is false. More commonly in CS papers, negation is indicated by the symbol¬
[ref].
% ("percent sign"); ASCII: 37
, Unicode: U+0025
, HTML: %
- Modulo operator: the remainder left after division, eg
65 % 7
is the remainder left after dividing 65 by 7 (in this case65 % 7 = 2
because65 = 7 * 9 + 2
) [ref] - Percentage: expresses a proportion as the numerator in x/100, eg 68% equals 0.68 [ref]
| ("pipe", aka "vertical bar"): ASCII: 124
, Unicode U+007C
, HTML: |