{"id":15061195,"url":"https://github.com/winoteam-archives/rescript-big","last_synced_at":"2026-03-15T17:38:04.368Z","repository":{"id":42904368,"uuid":"248774985","full_name":"winoteam-archives/rescript-big","owner":"winoteam-archives","description":"🎡 Zero-cost bindings to Big.js library.","archived":true,"fork":false,"pushed_at":"2023-01-07T04:36:11.000Z","size":363,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-12T01:50:03.093Z","etag":null,"topics":["bigjs","decimals","ocaml","reasonml","rescript","rescript-binding"],"latest_commit_sha":null,"homepage":"https://github.com/winoteam/rescript-big","language":"ReScript","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/winoteam-archives.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-03-20T14:26:02.000Z","updated_at":"2024-08-05T12:00:21.000Z","dependencies_parsed_at":"2023-02-06T12:00:47.474Z","dependency_job_id":null,"html_url":"https://github.com/winoteam-archives/rescript-big","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/winoteam-archives/rescript-big","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winoteam-archives%2Frescript-big","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winoteam-archives%2Frescript-big/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winoteam-archives%2Frescript-big/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winoteam-archives%2Frescript-big/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winoteam-archives","download_url":"https://codeload.github.com/winoteam-archives/rescript-big/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winoteam-archives%2Frescript-big/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27788188,"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","status":"online","status_checked_at":"2025-12-17T02:00:08.291Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bigjs","decimals","ocaml","reasonml","rescript","rescript-binding"],"created_at":"2024-09-24T23:11:31.940Z","updated_at":"2025-12-18T00:01:47.640Z","avatar_url":"https://github.com/winoteam-archives.png","language":"ReScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rescript-big\n\n[![Actions Status](https://github.com/winoteam/rescript-big/workflows/rescript-big/badge.svg)](https://github.com/winoteam/rescript-big/actions)\n\n**Zero-cost bindings to [Big.js](https://github.com/MikeMcl/big.js/) library.**\n\nIn this version only these methods are supported: `toFixed`, `plus`, `minus`, `div`, `times`, `valueOf`, `round`, `eq`, `gt`, `gte`, `lt` and `lte`\n\nIt also have some converters and shortcuts for converting an existing value or making a Big value, such as: `fromFloat`or `toFloat`.\n\nIt's accompanied with an `Operators` module which override some operators like `+.`, `*.`, `/.` and `-.`\n\n## 📦 Installation\n\nRun the following command:\n\n```bash\n$ yarn add rescript-big\n```\n\nThen add `rescript-big` to your `bsconfig.json`'s dependencies:\n\n```diff\n {\n   \"bs-dependencies\": [\n+    \"rescript-big\"\n   ]\n }\n```\n\n## 💻 Usage\n\n```rescript\nopen! Big.Operators\n\nlet a = 201.57512-\u003eBig.fromFloat\nJs.log(a-\u003eBig.toFixed(2)) // 201.58\n\n// Compiler error: 1. is a float, wanted Big.t\nlet c = a *. 1.\n\n// OK\nlet b = 1.-\u003eBig.fromFloat\nlet c = a *. b\nJs.log(Big.valueOf(c)) // 201.57512\n```\n\n## 🕺 Contribute\n\n### 🚀 Want to hack on `rescript-big`? Follow the next instructions\n\n1. Fork this repository to your own GitHub account and then clone it to your local device\n2. Install dependencies using Yarn: `yarn`\n3. Ensure that the tests are passing using `yarn test`\n4. Send a pull request 🙌\n\nRemember to add tests for your change if possible.\n\n## 👋 Questions\n\nIf you have any questions, feel free to open an issue. Please check the [Big.js docs](https://github.com/MikeMcl/big.js/) before submitting an issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinoteam-archives%2Frescript-big","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinoteam-archives%2Frescript-big","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinoteam-archives%2Frescript-big/lists"}