Framework (A-Z)

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If 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 July 07, 2011 11:08:41pm PDT

Creative Commons License