Reference for Wiring version 0027+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name

- (minus)

Examples
int c = 50 - 5;  // Sets c to 45
int d = c - 5;   // Sets d to 40
int e = d - 60;  // Sets e to -20
Description The value of the second parameter is subtracted from the first.
Syntax
value1 - value2
Parameters
value1 int or float
value2 int or float
Usage Application
Related -- (decrement)
-= (subtract assign)
+ (addition)
Updated on September 16, 2010 09:16:25pm PDT

Creative Commons License