File: README.txt

package info (click to toggle)
mpdecimal 4.0.1-5
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 2,232 kB
  • sloc: ansic: 17,917; cpp: 6,508; sh: 4,236; makefile: 621; lisp: 502; python: 85; asm: 18
file content (53 lines) | stat: -rw-r--r-- 1,500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53


libmpdec
========

libmpdec is a fast C/C++ library for correctly-rounded arbitrary precision
decimal floating point arithmetic.  It is a complete implementation of
Mike Cowlishaw/IBM's General Decimal Arithmetic Specification. The full
specification is available here:

http://speleotrove.com/decimal/


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 the basis for the decimal module in Python-3.3.


The library has been tested on the following platforms:

   amd64:  Linux, FreeBSD, OpenBSD, OpenSolaris, Windows

   ppc64:  AIX

   x86:    Linux, FreeBSD, OpenBSD, OpenSolaris, Windows

   mips32: Debian


libmpdec++
==========

libmpdec++ is a complete implementation of the General Decimal Arithmetic
Specification.  libmpdec++ is mostly a header library around libmpdec's
C functions.

The library frees users from manual memory management and has an easy API
with inline operators similar to the one in Python's decimal module. Like
Python's decimal module, libmpdec++ has a thread local context for inline
operators and other functions that use the implicit context.

In benchmarks the speed is close to libmpdec (about 4% slower due to the
copying, destructor overhead and the thread local context).

libmpdec++ has been tested on 64/32-bit Linux, 64/32-bit FreeBSD and OpenBSD
and 64/32-bit Windows.


Contact: Stefan Krah <skrah@bytereef.org>