mpdecimal

Library for decimal floating point arithmetic with high precision

brewmacoslinux
Try with needOr install directly
Source

About

Library for decimal floating point arithmetic

Commands

mpdecimal

Examples

Check mpdecimal library version and capabilities$ mpdecimal --version
Use mpdecimal in Python for precise decimal calculations$ python3 -c "from decimal import Decimal; print(Decimal('0.1') + Decimal('0.2'))"
Verify mpdecimal installation and library location$ brew info mpdecimal