pcalc

Calculator for working with multiple bases, sizes, and bit operations

brewmacoslinux
Try with needOr install directly
Source

About

Calculator for those working with multiple bases, sizes, and close to the bits

Commands

pcalc

Examples

Convert decimal 255 to hexadecimal and binary$ pcalc 255
Perform hexadecimal calculation$ pcalc 0xFF + 0x10
Bitwise AND operation in binary$ pcalc 0b1010 & 0b1100