math/mpdecimal 4.0.0 MidnightBSD
C/C++ arbitrary precision decimal floating point libraries
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- bsd2
- Categories
- math
Description
libmpdec is a complete C implementation of the General Decimal Arithmetic Specification. The specification, written by Mike Cowlishaw from IBM, defines a general purpose arbitrary precision data type together with rigorously specified functions and rounding behavior. As described in the scope section of the specification, libmpdec will - with minor restrictions - also conform to the IEEE 754-2008 Standard for Floating-Point Arithmetic, provided that the appropriate context parameters are set.
libmpdec++ is a complete C++ implementation of the General Decimal Arithmetic Specification. libmpdec++ is mostly a header library around libmpdec. The library frees users from manual memory management and has an easy API with inline operators. libmpdec++ has a thread local context for inline operators and other functions that use the implicit context.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | math/mpdecimal | 4.0.0 |
| FreeBSD | math/mpdecimal | 4.0.1 |
| NetBSD | math/mpdecimal | 4.0.1 |
| DragonFly | math/mpdecimal | 4.0.0 |
Install
Binary package:
mport install mpdecimal
From mports:
cd /usr/mports/math/mpdecimal && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= mpdecimal>0:math/mpdecimal
LIB_DEPENDS= libmpdec++.so:math/mpdecimal
Dependencies
No port depends on this one.
Configuration
No options to configure.
- USES
- compiler:c++11-lang gmake
- Service scripts
- none
Files
Manual pages 3
- libmpdec(3)
- libmpdec++(3)
- mpdecimal(3)
pkg-plist 16
- include/decimal.hh
- include/mpdecimal.h
- lib/libmpdec++.a
- lib/libmpdec++.so
- lib/libmpdec++.so.4
- lib/libmpdec++.so.4.0.0
- lib/libmpdec.a
- lib/libmpdec.so
- lib/libmpdec.so.4
- lib/libmpdec.so.4.0.0
- libdata/pkgconfig/libmpdec++.pc
- libdata/pkgconfig/libmpdec.pc
- share/man/man3/libmpdec++.3.gz
- share/man/man3/libmpdec.3.gz
- share/man/man3/mpdecimal.3.gz
- share/doc/mpdecimal/COPYRIGHT.txt
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| mpdecimal-4.0.0.tar.gz | 315325 | 942445c3245b22730fd41a67a7c5c231d11cb1b9936b9c0f76334fb7d0b4468c |
Master sites 1
- https://www.bytereef.org/software/mpdecimal/releases/