charly-lang / charly

🐈 The Charly Programming Language | Written by @KCreate
https://charly-lang.github.io/charly/
MIT License
199 stars 10 forks source link

Binary, Octal, Hex literals #161

Open KCreate opened 7 years ago

KCreate commented 7 years ago
// binary
0b00001000 // => 8
0b00000100 // => 4

// octal
0o00000040 // => 32
0o00000020 // => 16

// hex
0x00000F00 // => 256
0x00000010 // => 16

Prefixes:

Binary: 0b Octal: 0o Hex: 0x