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 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.