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

Addition

Syntax

x + y

Explanation

The addition returns the sum of the two operands as a new number.

Examples

1 + 2 // 3
-1 + -1 // -2
-1 + 1 // 0
Previous
Mathematics
Next
Subtraction
Last modified 3yr ago
On this page
Syntax
Explanation
Examples