MPDECIMAL(3)

πŸ’– MPDECIMAL(3) πŸ’–

okay bestie, welcome to the mpdecimal page β€” it lives in the Programmer's Manual, and it's the whole vibe for C/C++ libraries that do arbitrary precision decimal floating-point arithmetic, and do it correctly rounded. no cap. πŸŽ€


✨ NAME ✨

mpdecimal β€” version 4.0.1 πŸ’…


✨ SYNOPSIS ✨

C/C++ libraries for correctly rounded arbitrary precision decimal floating-
point arithmetic.

like… that's it. that's the whole pitch. and it ate. πŸ¦‹


✨ DESCRIPTION ✨

so the tea is this: libmpdec and libmpdec++ fully implement the General Decimal Arithmetic Specification. if you wanna read the source material (and honestly, main character energy of you), it's right here:

https://speleotrove.com/decimal/decarith.html

and per the scope section of that spec β€” with minor restrictions, ok, don't come for me β€” these libraries conform to the IEEE 754-2008 Standard for Floating-Point Arithmetic if you initialize the context with the appropriate parameters. yes, that part matters. it's giving "read the docs first, babe". πŸ™ˆ

depending on your distribution, the full HTML documentation is available in the mpdecimal-doc package, or over here:

https://www.bytereef.org/mpdecimal/index.html
ngl if you skip the docs and then something surprises you, that's between you and the context parameters. πŸ’€

✨ SEE ALSO ✨

  • libmpdec.3
  • libmpdec++.3

mpdecimal version 4.0.1, dated 2025-05-01 β€” that's the whole page, bestie. go be iconic with your decimals. 🫢🌸✨