From Learn @ Cemetech
Revision as of 14:22, 24 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Command Summary

Returns the difference between two numbers.

Command Syntax

value1 - value2

Menu Location

Press [-]

Calculator Compatibility


Token Size

1 byte

The - (subtract) operator takes two numbers, variables, or expressions and subtracts one from the other, thus returning the difference between them. The - operator appears lower in the order of operations than both * and /, so if those appear in an expression, they will be executed first. In addition, the + operator has the same order of operations as -, so the calculator simply executes them left to right in the order that they appear.




Error Conditions

  • ERR:SYNTAX is thrown if you try to use - (subtract) in place of (negative). Because they look very similar, it's easy to get this error; at the same time, it's an easy error to fix.

Related Commands