{"id":13736694,"url":"https://github.com/nim-lang/bigints","last_synced_at":"2025-06-26T02:35:45.434Z","repository":{"id":40274107,"uuid":"21294597","full_name":"nim-lang/bigints","owner":"nim-lang","description":"BigInts for Nim","archived":false,"fork":false,"pushed_at":"2024-07-08T09:26:06.000Z","size":335,"stargazers_count":128,"open_issues_count":27,"forks_count":31,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-06-21T00:40:22.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nim-lang.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2014-06-28T02:40:04.000Z","updated_at":"2025-06-05T18:41:45.000Z","dependencies_parsed_at":"2024-01-12T03:36:53.393Z","dependency_job_id":"1702b983-ba3a-4f07-9576-f40dd77ec0cc","html_url":"https://github.com/nim-lang/bigints","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nim-lang/bigints","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2Fbigints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2Fbigints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2Fbigints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2Fbigints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nim-lang","download_url":"https://codeload.github.com/nim-lang/bigints/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2Fbigints/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261987520,"owners_count":23240856,"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":[],"created_at":"2024-08-03T03:01:26.700Z","updated_at":"2025-06-26T02:35:45.413Z","avatar_url":"https://github.com/nim-lang.png","language":"Nim","readme":"# Pure BigInts for Nim\n\n[![test](https://github.com/nim-lang/bigints/actions/workflows/test.yaml/badge.svg)](https://github.com/nim-lang/bigints/actions/workflows/test.yaml)\n\nThis library provides a pure implementation for arbitrary precision integers in [Nim](https://nim-lang.org/).\n\nIt can be installed through nimble with:\n\n```\nnimble install https://github.com/nim-lang/bigints\n```\n\n`bigints` provides a `BigInt` type and related operations with standard Nim syntax:\n\n- creation of `BigInt` from all standard integer types (`initBigInt`)\n- comparisons (`\u003c`, `\u003c=`, `==`)\n- addition, negation and subtraction (`+`, `-`, `+=` `-=`)\n- multiplication (`*`, `*=`)\n- bit shifts (`shr`, `shl`)\n- bitwise `not`, `and`, `or` and `xor` (behave as if negative numbers were represented in 2's complement)\n- integer division and modulo operation (`div`, `mod`)\n- conversion of `BigInt` from/to strings supporting bases from 2 to 36 (`initBigInt`, `$`)\n- iteration utilities (`inc`, `dec`, `countdown`, `countup`, `..`, `..\u003c`)\n\n\n\n## Current limitations and possible enhancements\n\n* not expected to work on 32 bit\n* arithmetic operations such as addition, multiplication and division are not optimized for performance (e.g. [Karatsuba multiplication](https://en.wikipedia.org/wiki/Karatsuba_algorithm) is not implemented)\n\n\n\n## Documentation\n\nThe documentation is available at https://nim-lang.github.io/bigints.\n","funding_links":[],"categories":["Algorithms"],"sub_categories":["Bigints"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnim-lang%2Fbigints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnim-lang%2Fbigints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnim-lang%2Fbigints/lists"}