{"id":30580552,"url":"https://github.com/react-component/mini-decimal","last_synced_at":"2026-03-17T08:25:49.130Z","repository":{"id":64126126,"uuid":"572793207","full_name":"react-component/mini-decimal","owner":"react-component","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-29T10:16:30.000Z","size":25,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-15T07:41:54.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/react-component.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-12-01T03:19:35.000Z","updated_at":"2024-09-20T09:08:58.000Z","dependencies_parsed_at":"2024-01-29T12:30:53.288Z","dependency_job_id":"e59b929c-d850-4cc9-aa35-9c55c99e2c2a","html_url":"https://github.com/react-component/mini-decimal","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"4e0f425a063b8d428904e3790ae9e8c5cc50ae16"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":"react-component/portal","purl":"pkg:github/react-component/mini-decimal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fmini-decimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fmini-decimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fmini-decimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fmini-decimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/mini-decimal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fmini-decimal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272636166,"owners_count":24967983,"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-08-29T02:00:10.610Z","response_time":87,"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":[],"created_at":"2025-08-29T05:37:01.993Z","updated_at":"2026-03-14T11:15:45.413Z","avatar_url":"https://github.com/react-component.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @rc-component/mini-decimal\n\nA mini decimal calculator which only support `add`, `multi` or compare operation for mini bundle size.\n\n[![NPM version][npm-image]][npm-url] [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/@rc-component/mini-decimal.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/@rc-component/mini-decimal\n[github-actions-image]: https://github.com/react-component/mini-decimal/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/mini-decimal/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/mini-decimal/master.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/react-component/mini-decimal/branch/master\n[download-image]: https://img.shields.io/npm/dm/@rc-component/mini-decimal.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@rc-component/mini-decimal\n\n## Development\n\n```bash\nnpm install\nnpm test\n```\n\n## Usage\n\n```tsx\nimport getMiniDecimal from '@rc-component/mini-decimal';\n\n// Add\ngetMiniDecimal('0.1').add('0.2').toString(); // 0.3\n\n// Multi\ngetMiniDecimal('0.1').multi('0.2').toString(); // 0.02\n\n// Negate\ngetMiniDecimal('0.1').negate().toString(); // -0.1\n\n// Equal\ngetMiniDecimal('0.1').equal('0.1'); // true\ngetMiniDecimal('0.1').equal('0.2'); // false\n\n// Less Equals\ngetMiniDecimal('0.1').lessEquals('0.2'); // true\ngetMiniDecimal('0.1').lessEquals('0.1'); // false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fmini-decimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Fmini-decimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fmini-decimal/lists"}