数制计算器
在二进制、八进制、十进制和十六进制系统之间转换数字。执行位运算,包括 AND、OR、XOR、NOT 和位移。
Quick Reference
Binary (base 2)
0, 1 only
Prefix: 0b
0, 1 only
Prefix: 0b
Octal (base 8)
0-7 only
Prefix: 0o
0-7 only
Prefix: 0o
Decimal (base 10)
0-9
No prefix
0-9
No prefix
Hex (base 16)
0-9, A-F
Prefix: 0x
0-9, A-F
Prefix: 0x
Number Systems & Bitwise Operations - 技术详情
Understanding number systems is essential for low-level programming, networking, and debugging. Bitwise operations are used for flags, permissions, masks, and optimization in systems programming.
命令行替代方案
# Convert in terminal (bash)\necho $((2#1010)) # binary to decimal\nprintf '%x\\n' 255 # decimal to hex\nprintf '%d\\n' 0xFF # hex to decimal\necho $((16#FF)) # hex to decimal