• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

t/H24-May-2002-14988

ChangesH A D24-May-20021.4 KiB5138

FixedPrecision.pmH A D24-May-20025.8 KiB18462

MANIFESTH A D14-Sep-200169 76

Makefile.PLH A D19-Feb-2002328 96

READMEH A D19-Feb-20021.7 KiB4130

README

1Math::FixedPrecision - Decimal Math without Floating Point Errors
2
3There are numerous instances where floating point math is unsuitable, yet the
4data does not consist solely of integers.  This module is designed to completely
5overload all standard math functions.  The module takes care of all conversion
6and rounding automatically.  Rounding is handled using the IEEE 754 standard
7even mode.  This is a complete rewrite to use Math::BigFloat, rather than
8Math::BigInt to handle the underlying math operations.
9
10This packages requires the most recent version of Math::BigInt and Math::BigFloat
11available from CPAN at
12
13	http://search.cpan.org/search?dist=Math-BigInt
14
15Those modules will be part of Perl 5.6.2 and 5.8, but will run without problem in
16Perl 5.005.
17
18This module is not a replacement for Math::BigFloat; rather it serves a similar
19but slightly different purpose.  By strictly limiting precision automatically,
20this module operates slightly more natually than Math::BigFloat when dealing
21with floating point numbers of limited accuracy.  Math::BigFloat can
22unintentially inflate the apparent accuracy of a calculation.
23
24Please examine assumptions you are operating under before deciding between this
25module and Math::BigFloat.  With this module the assumption is that your data
26is not very accurate and you do not want to overstate any resulting values;
27with Math::BigFloat, you can completely avoid the rounding problems associated
28with floating point notation.
29
30To install, do the usual:
31
32        perl Makefile.PL
33        make
34        make test
35        make install
36
37Please see the POD file for more details.
38
39John Peacock
40jpeacock@rowman.com
41