🍺 BREW Explorer

← all formulae

mpdecimal

brew install mpdecimal v4.0.1 BSD-2-Clause

C library for arbitrary-precision decimal floating-point arithmetic.

Why you might care

Provides exact decimal math without floating-point rounding errors, essential for financial calculations, scientific computing, and Python's decimal module. Faster and more compliant than pure-Python implementations.

Categories

Alternatives

GNU MPFR Decimal.js libdecnumber
148.5k
30-day installs · #20
522.3k
90-day · #19
1.9M
365-day · #20

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [
    "libmpdec"
  ],
  "alternatives": [
    "GNU MPFR",
    "Decimal.js",
    "libdecnumber"
  ],
  "build_dependencies": [],
  "categories": [
    "library",
    "math",
    "scientific"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Library for decimal floating point arithmetic",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:36+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "mpdecimal",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://www.bytereef.org/mpdecimal/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "mpdecimal \u2014 mpdecimal project",
  "installs_30d": 148484,
  "installs_365d": 1914903,
  "installs_90d": 522318,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-2-Clause",
  "llm_generated_at": "2026-06-20T23:42:10+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "mpdecimal",
  "oldnames": [],
  "one_liner": "C library for arbitrary-precision decimal floating-point arithmetic.",
  "optional_dependencies": [],
  "rank_30d": 20,
  "rank_365d": 20,
  "rank_90d": 19,
  "raw_hash": "be71fe903d608005",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/m/mpdecimal.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "4.0.1",
  "versioned_formulae": [],
  "why_use_this": "Provides exact decimal math without floating-point rounding errors, essential for financial calculations, scientific computing, and Python\u0027s decimal module. Faster and more compliant than pure-Python implementations."
}