Simplified
commited
commit
3cc0eeea6e89d036bff944094a3fdbb53311882d
... | ... | @@ -1,16 +1,7 @@ |
1 | Negates a [[number]] (or inverses the sign). |
|
2 | ||
3 | 1 | [[/uploads/negate.png]] |
4 | 2 | |
5 | Inputs: |
|
6 | ||
7 | - Num: The number to negate. |
|
8 | ||
9 | Outputs: |
|
10 | ||
11 | - -Num: The negated number. |
|
3 | Negates the input [[number]]. |
|
12 | 4 | |
13 | ## Examples |
|
14 | - The top one turns `5` into `-5` while the last one turns `-8` into `8`. Positive numbers will become negative, and vice versa. |
|
5 | A positive number turns into a negative number and vice versa. |
|
15 | 6 | |
16 | [[uploads/negate_ex01.jpg]] |
|
... | ... | \ No newline at end of file |
0 | [[/uploads/Screenshot_2022-02-16-18-23-43-80_6c69499164362a0dbe2f1dfe7c62199a.jpg]] |
|
... | ... | \ No newline at end of file |