pcalc
« Back to VersTracker
Description:
Calculator for those working with multiple bases, sizes, and close to the bits
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: calculator programmer terminal hex binary
Install: brew install pcalc
About:
Pcalc is a programmer's calculator designed for terminal use, handling binary, decimal, and hexadecimal conversions seamlessly. It supports bitwise operations, floating-point arithmetic, and features a stack-based evaluation model for complex calculations. The tool is particularly useful for developers debugging low-level code or working with memory addresses and binary data.
Key Features:
  • Supports multiple number bases (binary, octal, decimal, hex)
  • Bitwise operations and logical shifts
  • Stack-based evaluation for complex expressions
  • Interactive terminal interface with history
Use Cases:
  • Converting memory addresses between hex and decimal during debugging
  • Performing bitwise operations on hardware register values
  • Quick base conversions for network subnet calculations
Alternatives:
  • bc – bc is a general-purpose calculator, while pcalc is optimized for programmer-specific tasks like bitwise ops
  • calc – calc offers similar functionality but pcalc provides a more modern, stack-based interface
Version History
Detected Version Rev Change Commit