B.3.1. Unary operators

In order of decreasing precedence.

Operator

Example

Argument type

Description

!

!a

int

logical NOT

~

~a

int

one’s complement

!

a!

int

factorial

-

-a

any numerical

unary minus

+

+a

any numerical

unary plus

B.3.2. Binary operators

In order of decreasing precedence.

Operator

Example

Argument Type

Description

**

a**b

any numerical

exponentiation

*

a*b

any numerical

multiplication

/

a/b

any numerical

division

%

a%b

int

modulo

+

a+b

any numerical

addition

-

a-b

any numerical

subtraction

<

a<b

any numerical

less than

<=

a<=b

any numerical

less than or equal to

>

a>b

any numerical

greater than

>=

Get Gnuplot in Action: Understanding Data with Graphs now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.