bc-gh
« Back to VersTracker
Description:
Implementation of Unix dc and POSIX bc with GNU and BSD extensions
Type: Formula  |  Latest Version: 7.0.3@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: calculator math cli arbitrary-precision developer-tools
Install: brew install bc-gh
About:
bc-gh is a feature-rich implementation of the standard Unix dc(1) calculator and the POSIX bc(1) language. It provides a powerful, scriptable command-line environment for arbitrary-precision arithmetic. This version includes significant GNU and BSD extensions, making it a robust and versatile tool for developers and scientists.
Key Features:
  • Arbitrary precision arithmetic
  • Full POSIX bc and dc compatibility
  • Interactive shell with readline support
  • Extensive math library (standard, scientific, and more)
Use Cases:
  • Scientific and engineering calculations requiring high precision
  • Financial computations where floating-point errors are unacceptable
  • Scripting complex mathematical operations in shell scripts
Alternatives:
  • GNU bc – bc-gh is a modern, actively maintained alternative with more features and better standards compliance.
  • dc – The traditional RPN calculator; bc-gh includes a compatible dc interpreter with extensions.
License: BSD-2-Clause
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 13, 2025 11:16am 0 VERSION_BUMP 7232246d
Nov 26, 2024 10:59am 0 VERSION_BUMP ded6cb42
Sep 18, 2024 2:47pm 0 VERSION_BUMP 7a3cddaf