– (Subtract/Negative)

Search for answers or browse our knowledge base.

< All Topics
Print

– (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).

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish