FANDOM


Syntax

number - number

- number number

(- number number number ...)

Explanation

- outputs the difference between the first and second inputs. - can also be used to indicate a negative number.

A negative number consists of a minus sign followed by the number with no space in between.


- can be used as a prefix operation with two inputs.

Examples

? 7 - 5

Result: 2

? 5 - 7

Result: -2

?

The minus sign can be used in several ways: as an infix operation, as a prefix operation, and to indicate a negative number.

? -14 - 5 ; negative 14 minus 5

Result: -19

? -14 - -5 ; negative 14 minus negative 5

Result: -9

? - 14 5 ; prefix operation: 14 minus 5

Result: 9

?