bc
brew install bc
v1.08.2
GPL-3.0-or-later
keg-only
GNU calculator for arbitrary-precision arithmetic with a C-like syntax.
Why you might care
bc is a standard POSIX tool for interactive or scripted mathematical calculations beyond shell arithmetic limits. It supports arbitrary precision decimals, functions, and variables—essential for financial calculations, scientific scripts, or when `expr` or shell math is insufficient. macOS provides an older version; Homebrew's build is newer and more complete.
2.7k
30-day installs · #831
8.7k
90-day · #869
25.2k
365-day · #966
Build dependencies
Links
- https://www.gnu.org/software/bc/
- Brew formula source: Formula/b/bc.rb
Keg-only reason
:provided_by_macos
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"dc",
"python",
"perl"
],
"build_dependencies": [
"texinfo"
],
"categories": [
"calculator",
"text-processor",
"language-runtime"
],
"caveats": null,
"conflicts_with": [
"bc-gh"
],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Arbitrary precision numeric processing language",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:35:47+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "bc",
"github_default_branch": null,
"github_last_commit_at": null,
"github_readme_excerpt": null,
"github_repo": null,
"github_stars": null,
"github_topics": [],
"homepage": "https://www.gnu.org/software/bc/",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": "bc\n- GNU Project - Free Software Foundation",
"installs_30d": 2744,
"installs_365d": 25218,
"installs_90d": 8682,
"keg_only": 1,
"keg_only_reason": ":provided_by_macos",
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "GPL-3.0-or-later",
"llm_generated_at": "2026-06-20T23:47:18+00:00",
"llm_model": "claude-haiku-4-5",
"name": "bc",
"oldnames": [],
"one_liner": "GNU calculator for arbitrary-precision arithmetic with a C-like syntax.",
"optional_dependencies": [],
"rank_30d": 831,
"rank_365d": 966,
"rank_90d": 869,
"raw_hash": "319b831b1db8a951",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/b/bc.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [
{
"bison": "build"
},
{
"ed": "build"
},
"flex",
"libedit"
],
"version_head": null,
"version_stable": "1.08.2",
"versioned_formulae": [],
"why_use_this": "bc is a standard POSIX tool for interactive or scripted mathematical calculations beyond shell arithmetic limits. It supports arbitrary precision decimals, functions, and variables\u2014essential for financial calculations, scientific scripts, or when `expr` or shell math is insufficient. macOS provides an older version; Homebrew\u0027s build is newer and more complete."
}