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
Comment on page
Bitwise Left Shift
Syntax
x
<<
y
Explanation
Where
x
is a 32-bit integer, appends
y
zeros to the binary representation of
x
Examples
1
<<
2
// 1 (1) -> 100 (4)
2
<<
4
// 2 (10) -> 100000 (32)
Previous
Bitwise NOT
Next
Bitwise Right Shift
Last modified
3yr ago