1Math::BigInt::Calc(3) User Contributed Perl DocumentationMath::BigInt::Calc(3)
2
3
4
6 Math::BigInt::Calc - Pure Perl module to support Math::BigInt
7
9 # to use it with Math::BigInt
10 use Math::BigInt lib => 'Calc';
11
12 # to use it with Math::BigFloat
13 use Math::BigFloat lib => 'Calc';
14
15 # to use it with Math::BigRat
16 use Math::BigRat lib => 'Calc';
17
19 Math::BigInt::Calc inherits from Math::BigInt::Lib.
20
21 In this library, the numbers are represented in base B = 10**N, where N
22 is the largest possible value that does not cause overflow in the
23 intermediate computations. The base B elements are stored in an array,
24 with the least significant element stored in array element zero. There
25 are no leading zero elements, except a single zero element when the
26 number is zero.
27
28 For instance, if B = 10000, the number 1234567890 is represented
29 internally as [7890, 3456, 12].
30
32 Math::BigInt::Lib for a description of the API.
33
34 Alternative libraries Math::BigInt::FastCalc, Math::BigInt::GMP, and
35 Math::BigInt::Pari.
36
37 Some of the modules that use these libraries Math::BigInt,
38 Math::BigFloat, and Math::BigRat.
39
40
41
42perl v5.28.1 2018-04-18 Math::BigInt::Calc(3)