{
    "content": [
        {
            "type": "text",
            "text": "# Math::BigInt::Calc (info)\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# 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## DESCRIPTION\n\nMath::BigInt::Calc inherits from Math::BigInt::Lib.\n\n## Sections\n\n- **Math::BigInt::Calc(3pmUser Contributed Perl DocumentatiMath::BigInt::Calc(3pm)**\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS**\n- **METHODS**\n- **SEE ALSO**\n- **Math::BigInt::Calc(3perPerl Programmers Reference GuiMath::BigInt::Calc(3perl)**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Math::BigInt::Calc",
        "section": "",
        "mode": "info",
        "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": [
            {
                "name": "Calc",
                "section": "3pm",
                "url": "https://www.chedong.com/phpMan.php/man/Calc/3pm/json"
            }
        ],
        "section_outline": [
            {
                "name": "Math::BigInt::Calc(3pmUser Contributed Perl DocumentatiMath::BigInt::Calc(3pm)",
                "lines": 1,
                "subsections": []
            },
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "Math::BigInt::Calc(3perPerl Programmers Reference GuiMath::BigInt::Calc(3perl)",
                "lines": 1,
                "subsections": []
            }
        ],
        "sections": {
            "Math::BigInt::Calc(3pmUser Contributed Perl DocumentatiMath::BigInt::Calc(3pm)": {
                "content": "",
                "subsections": []
            },
            "NAME": {
                "content": "Math::BigInt::Calc - Pure Perl module to support Math::BigInt\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "# 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",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Math::BigInt::Calc inherits from Math::BigInt::Lib.\n\nIn this library, the numbers are represented in base B = 10N, where N\nis the largest possible value that does not cause overflow in the\nintermediate computations. The base B elements are stored in an array,\nwith the least significant element stored in array element zero. There\nare no leading zero elements, except a single zero element when the\nnumber is zero.\n\nFor instance, if B = 10000, the number 1234567890 is represented\ninternally as [7890, 3456, 12].\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "When the module is loaded, it computes the maximum exponent, i.e.,\npower of 10, that can be used with and without \"use integer\" in the\ncomputations. The default is to use this maximum exponent. If the\ncombination of the 'baselen' value and the 'useint' value exceeds the\nmaximum value, an error is thrown.\n\nbaselen\nThe base length can be specified explicitly with the 'baselen'\noption. The value must be a positive 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\nin the internal computations. The value is interpreted as a boolean\nvalue, so use 0 or \"\" for false and anything else for true. If the\n'baselen' is not specified together with 'useint', the current\nvalue for the base length is used.\n\nuse Math::BigInt::Calc useint => 1;   # use \"use integer\" internally\n",
                "subsections": []
            },
            "METHODS": {
                "content": "This overview constains only the methods that are specific to\n\"Math::BigInt::Calc\". For the other methods, see Math::BigInt::Lib.\n\nbaselen()\nSpecify the desired base length and whether to enable \"use integer\"\nin the computations.\n\nMath::BigInt::Calc -> baselen($baselen, $useint);\n\nNote that it is better to specify the base length and whether to\nuse integers as options when the module is loaded, for example like\nthis\n\nuse Math::BigInt::Calc baselen => 6, useint => 1;\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Math::BigInt::Lib for a description of the API.\n\nAlternative libraries Math::BigInt::FastCalc, Math::BigInt::GMP, and\nMath::BigInt::Pari.\n\nSome of the modules that use these libraries Math::BigInt,\nMath::BigFloat, and Math::BigRat.\n\nperl v5.34.0                      2026-06-23         Math::BigInt::Calc(3perl)",
                "subsections": []
            },
            "Math::BigInt::Calc(3perPerl Programmers Reference GuiMath::BigInt::Calc(3perl)": {
                "content": "",
                "subsections": []
            }
        }
    }
}