Cheddar Documentation
Search
⌃
K
Cheddar Documentation
Search
⌃
K
Introduction
Syntax
Literals
Mathematics
Addition
Subtraction
Multiplication
Division
Exponentiation
Remainder
Negation
Sign
Root
Bitwise AND
Bitwise OR
Bitwise XOR
Bitwise NOT
Bitwise Left Shift
Bitwise Right Shift
Variables
Functions
Default Operators
Control Flow
Standard Library
Developing
Powered By
GitBook
Subtraction
Syntax
x
-
y
Explanation
The subtraction operator returns the difference of the two operands as a new number.
Examples
2
-
1
// 1
-
1
-
1
// -2
-
1
-
-
1
// 0
Previous
Addition
Next
Multiplication
Last modified
3yr ago