{"id":20160157,"url":"https://github.com/trizen/math-anynum","last_synced_at":"2026-06-12T14:31:26.528Z","repository":{"id":56840672,"uuid":"85574952","full_name":"trizen/Math-AnyNum","owner":"trizen","description":"Math::AnyNum - transparent interface to Math::GMPq, Math::GMPz, Math::MPFR and Math::MPC.","archived":false,"fork":false,"pushed_at":"2023-11-09T06:34:10.000Z","size":1212,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-13T13:49:59.652Z","etag":null,"topics":["bigint","gmp","math","mpc","mpfr","perl","perl-module"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Math::AnyNum","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trizen.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-20T12:36:44.000Z","updated_at":"2022-06-09T20:11:04.000Z","dependencies_parsed_at":"2023-01-23T21:16:06.183Z","dependency_job_id":"56f2958a-2f66-43ed-83e4-65f73e1e2cac","html_url":"https://github.com/trizen/Math-AnyNum","commit_stats":{"total_commits":650,"total_committers":4,"mean_commits":162.5,"dds":"0.30153846153846153","last_synced_commit":"94163c93cc6d1a0a504b9f353cfdcc58a212c0f6"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2FMath-AnyNum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2FMath-AnyNum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2FMath-AnyNum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2FMath-AnyNum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trizen","download_url":"https://codeload.github.com/trizen/Math-AnyNum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241597919,"owners_count":19988335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigint","gmp","math","mpc","mpfr","perl","perl-module"],"created_at":"2024-11-14T00:12:30.264Z","updated_at":"2026-06-12T14:31:26.523Z","avatar_url":"https://github.com/trizen.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Math::AnyNum\n\nArbitrary size precision for integers, rationals, floating-points and complex numbers.\n\n# DESCRIPTION\n\n[Math::AnyNum](https://metacpan.org/pod/Math::AnyNum) provides a correct, intuitive and transparent interface to the [GMP](https://gmplib.org/), [MPFR](http://www.mpfr.org/) and [MPC](http://www.multiprecision.org/) libraries, using [Math::GMPq](https://metacpan.org/release/Math-GMPq), [Math::GMPz](https://metacpan.org/release/Math-GMPz), [Math::MPFR](https://metacpan.org/release/Math-MPFR) and [Math::MPC](https://metacpan.org/release/Math-MPC).\n\n# SYNOPSIS\n\n```perl\nuse 5.014;\nuse Math::AnyNum qw(:overload factorial);\n\n# Integers\nsay factorial(30);                            #=\u003e 265252859812191058636308480000000\n\n# Floating-point numbers\nsay sqrt(1 / factorial(100));                 #=\u003e 1.0351378111756264713204945[...]e-79\n\n# Rational numbers\nmy $x = 2/3;\nsay ($x * 3);                                 #=\u003e 2\nsay (2 / $x);                                 #=\u003e 3\nsay $x;                                       #=\u003e 2/3\n\n# Complex numbers\nsay 3 + 4*i;                                  #=\u003e 3+4i\nsay sqrt(-4);                                 #=\u003e 2i\nsay log(-1);                                  #=\u003e 3.1415926535897932384626433832[...]i\n```\n\n# INSTALLATION\n\nTo install this module, run the following commands:\n\n```console\nperl Build.PL\n./Build\n./Build test\n./Build install\n```\n\n# SUPPORT AND DOCUMENTATION\n\nAfter installing, you can find documentation for this module with the\nperldoc command.\n\n```console\nperldoc Math::AnyNum\n```\n\n# LICENSE AND COPYRIGHT\n\nCopyright (C) 2017-2026 by Daniel \"Trizen\" Șuteu\n\nThis program is free software; you can redistribute it and/or modify it\nunder the terms of the the Artistic License (2.0). You may obtain a\ncopy of the full license at:\n\nhttps://www.perlfoundation.org/artistic-license-20.html\n\nAny use, modification, and distribution of the Standard or Modified\nVersions is governed by this Artistic License. By using, modifying or\ndistributing the Package, you accept this license. Do not use, modify,\nor distribute the Package, if you do not accept this license.\n\nIf your Modified Version has been derived from a Modified Version made\nby someone other than you, you are nevertheless required to ensure that\nyour Modified Version complies with the requirements of this license.\n\nThis license does not grant you the right to use any trademark, service\nmark, tradename, or logo of the Copyright Holder.\n\nThis license includes the non-exclusive, worldwide, free-of-charge\npatent license to make, have made, use, offer to sell, sell, import and\notherwise transfer the Package with respect to any patent claims\nlicensable by the Copyright Holder that are necessarily infringed by the\nPackage. If you institute patent litigation (including a cross-claim or\ncounterclaim) against any party alleging that the Package constitutes\ndirect or contributory patent infringement, then this Artistic License\nto you shall terminate on the date that such litigation is filed.\n\nDisclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER\nAND CONTRIBUTORS \"AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR\nPURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY\nYOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR\nCONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR\nCONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,\nEVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrizen%2Fmath-anynum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrizen%2Fmath-anynum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrizen%2Fmath-anynum/lists"}