- (Subtract/Negative)

Indicates a negative value (unary -) or subtracts one value from another.

Syntax

[expression1]-expression2

The minus sign (-) subtracts the expression on the right from the expression on the left.

where

expression1

a number or expression that evaluates to a number

expression2

a number or expression that evaluates to a number

Comments

Arithmetic operators indicate the sign of a number or perform arithmetic operations (addition, subtraction, multiplication, division, exponentiation).