{"id":13725315,"url":"https://github.com/plow-technologies/bs-Zarith","last_synced_at":"2025-05-07T20:31:59.895Z","repository":{"id":56677123,"uuid":"133758469","full_name":"plow-technologies/bs-Zarith","owner":"plow-technologies","description":"Support Bigint, Q (rational numbers) and Z (integer numbers) in BuckleScript.","archived":false,"fork":false,"pushed_at":"2022-12-02T18:02:52.000Z","size":407,"stargazers_count":15,"open_issues_count":2,"forks_count":1,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-10-31T18:08:38.653Z","etag":null,"topics":["bs-zarith","bucklescript","integer","reasonml","zarith"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plow-technologies.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-17T04:24:09.000Z","updated_at":"2022-12-14T22:50:15.000Z","dependencies_parsed_at":"2023-01-23T08:45:49.385Z","dependency_job_id":null,"html_url":"https://github.com/plow-technologies/bs-Zarith","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plow-technologies%2Fbs-Zarith","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plow-technologies%2Fbs-Zarith/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plow-technologies%2Fbs-Zarith/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plow-technologies%2Fbs-Zarith/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plow-technologies","download_url":"https://codeload.github.com/plow-technologies/bs-Zarith/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224645326,"owners_count":17346124,"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":["bs-zarith","bucklescript","integer","reasonml","zarith"],"created_at":"2024-08-03T01:02:19.238Z","updated_at":"2024-11-14T15:31:11.426Z","avatar_url":"https://github.com/plow-technologies.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# bs-zarith\n\nThe API is stable, but there is not a lot of testing. Use with caution.\n\n## Bigint\n\n```OCaml\nlet x = Bigint.of_string \"1000000000000000000000000000000000000000\" in\nlet y = Bigint.of_int 1 in\nlet z = Bigint.(y + x) in\nJs.log(Bigint.to_string(z));\n```\n\n## Z\n\n```\nlet x = Z.Int64.of_string \"230000232323322323\" in\nlet y = Z.Int64.of_int 3 in\nlet z = Z.Int64.(x - y) in\nJs.log(Z.Int64.to_string(z));\n```\n\n## Q\n\n```\nlet x = Q.Int.of_string \"1/2\" in\nlet y = Q.Int.make (Z.Int.one) (Z.Int.of_int 2)\nlet z = Q.Int.sub x y\nJs.log(Q.Int.to_string(z));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplow-technologies%2Fbs-Zarith","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplow-technologies%2Fbs-Zarith","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplow-technologies%2Fbs-Zarith/lists"}