mpdecimal
« Back to VersTracker
Description:
Library for decimal floating point arithmetic
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: library c c++ math decimal ieee-754
Install: brew install mpdecimal
About:
Mpdecimal is a general-purpose decimal floating point library for C/C++ that provides arbitrary precision arithmetic. It is the official reference implementation for the IEEE 754-2008 standard and serves as the backend for Python's decimal module. Its main value is delivering accurate, predictable financial calculations where binary floating point errors are unacceptable.
Key Features:
  • IEEE 754-2008 compliant arithmetic
  • Arbitrary precision with configurable context
  • High-performance C implementation with C++ support
  • Portable across platforms
Use Cases:
  • Financial and monetary calculations
  • Accounting and billing systems
  • Scientific applications requiring exact decimal representation
Alternatives:
  • libmpdec – Alias for the same project; mpdecimal is the canonical name in Homebrew
  • Boost.Multiprecision – General multiprecision library; not specialized for decimal floating point
Version History
Detected Version Rev Change Commit
Sep 10, 2025 3:44am 0 VERSION_BUMP 716a557f
Sep 16, 2024 11:13pm 0 VERSION_BUMP a6241b26