| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### - (negation)
Examples |  |
    int a = 5;         // Sets "a" to 5
    int b = -a;        // Sets "b" to -5
    int c = -(5 + 3);  // Sets "c" to -8
Description |  | Reverses the sign of the value. Equivalent to multiplying by -1. For example, -5 is the same as 5 * -1.
Syntax |  |
    -value
Parameters |  |
value |  | int or float
Usage |  | Web & Application
Related |  | - (subtract)

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |