{
    "content": [
        {
            "type": "text",
            "text": "# Math::BigInt::Calc (perldoc)\n\n**Summary:** Math::BigInt::Calc - pure Perl module to support Math::BigInt\n\n**Synopsis:** # to use it with Math::BigInt\nuse Math::BigInt lib => 'Calc';\n# to use it with Math::BigFloat\nuse Math::BigFloat lib => 'Calc';\n# to use it with Math::BigRat\nuse Math::BigRat lib => 'Calc';\n# explicitly set base length and whether to \"use integer\"\nuse Math::BigInt::Calc baselen => 4, useint => 1;\nuse Math::BigInt lib => 'Calc';\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (13 lines)\n- **DESCRIPTION** (8 lines)\n- **OPTIONS** (19 lines)\n- **METHODS** (13 lines)\n- **SEE ALSO** (7 lines)\n\n## Full Content\n\n### NAME\n\nMath::BigInt::Calc - pure Perl module to support Math::BigInt\n\n### SYNOPSIS\n\n# to use it with Math::BigInt\nuse Math::BigInt lib => 'Calc';\n\n# to use it with Math::BigFloat\nuse Math::BigFloat lib => 'Calc';\n\n# to use it with Math::BigRat\nuse Math::BigRat lib => 'Calc';\n\n# explicitly set base length and whether to \"use integer\"\nuse Math::BigInt::Calc baselen => 4, useint => 1;\nuse Math::BigInt lib => 'Calc';\n\n### DESCRIPTION\n\nMath::BigInt::Calc inherits from Math::BigInt::Lib.\n\nIn this library, the numbers are represented interenally in base B = 10N, where N is the\nlargest possible integer that does not cause overflow in the intermediate computations. The base\nB elements are stored in an array, with the least significant element stored in array element\nzero. There are no leading zero elements, except a single zero element when the number is zero.\nFor instance, if B = 10000, the number 1234567890 is represented internally as [7890, 3456, 12].\n\n### OPTIONS\n\nWhen the module is loaded, it computes the maximum exponent, i.e., power of 10, that can be used\nwith and without \"use integer\" in the computations. The default is to use this maximum exponent.\nIf the combination of the 'baselen' value and the 'useint' value exceeds the maximum value, an\nerror is thrown.\n\nbaselen\nThe base length can be specified explicitly with the 'baselen' option. The value must be a\npositive integer.\n\nuse Math::BigInt::Calc baselen => 4;  # use 10000 as internal base\n\nuseint\nThis option is used to specify whether \"use integer\" should be used in the internal\ncomputations. The value is interpreted as a boolean value, so use 0 or \"\" for false and\nanything else for true. If the 'baselen' is not specified together with 'useint', the\ncurrent value for the base length is used.\n\nuse Math::BigInt::Calc useint => 1;   # use \"use integer\" internally\n\n### METHODS\n\nThis overview constains only the methods that are specific to \"Math::BigInt::Calc\". For the\nother methods, see Math::BigInt::Lib.\n\nbaselen()\nSpecify the desired base length and whether to enable \"use integer\" in the computations.\n\nMath::BigInt::Calc -> baselen($baselen, $useint);\n\nNote that it is better to specify the base length and whether to use integers as options\nwhen the module is loaded, for example like this\n\nuse Math::BigInt::Calc baselen => 6, useint => 1;\n\n### SEE ALSO\n\nMath::BigInt::Lib for a description of the API.\n\nAlternative libraries Math::BigInt::FastCalc, Math::BigInt::GMP, Math::BigInt::Pari,\nMath::BigInt::GMPz, and Math::BigInt::BitVect.\n\nSome of the modules that use these libraries Math::BigInt, Math::BigFloat, and Math::BigRat.\n\n"
        }
    ],
    "structuredContent": {
        "command": "Math::BigInt::Calc",
        "section": "",
        "mode": "perldoc",
        "summary": "Math::BigInt::Calc - pure Perl module to support Math::BigInt",
        "synopsis": "# to use it with Math::BigInt\nuse Math::BigInt lib => 'Calc';\n# to use it with Math::BigFloat\nuse Math::BigFloat lib => 'Calc';\n# to use it with Math::BigRat\nuse Math::BigRat lib => 'Calc';\n# explicitly set base length and whether to \"use integer\"\nuse Math::BigInt::Calc baselen => 4, useint => 1;\nuse Math::BigInt lib => 'Calc';",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 19,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 7,
                "subsections": []
            }
        ]
    }
}