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
Negation
Syntax
-
x
Explanation
Unary
-
, performs negation on the operand.
Examples
-
2
// -2
-
(
-
2
)
// 2
Previous
Remainder
Next
Sign
Last modified
3yr ago