{"id":15861999,"url":"https://github.com/afeiship/next-decimal","last_synced_at":"2026-05-18T02:31:08.149Z","repository":{"id":58223871,"uuid":"50412260","full_name":"afeiship/next-decimal","owner":"afeiship","description":"An arbitrary-precision decimal lib based on next toolkit.","archived":false,"fork":false,"pushed_at":"2019-04-26T02:37:10.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T09:02:49.603Z","etag":null,"topics":["add","decimal","div","mul","next","sub"],"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/afeiship.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":"2016-01-26T07:43:11.000Z","updated_at":"2019-04-26T13:27:35.000Z","dependencies_parsed_at":"2022-08-31T02:00:59.875Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-decimal","commit_stats":null,"previous_names":["afeiship/next-lang-decimal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-decimal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-decimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-decimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-decimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-decimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-decimal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-decimal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["add","decimal","div","mul","next","sub"],"created_at":"2024-10-05T22:23:12.978Z","updated_at":"2026-05-18T02:31:08.128Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-decimal\n\u003e An arbitrary-precision decimal lib based on next toolkit.\n\n![mahua](https://api.travis-ci.org/afeiship/next-decimal.svg?branch=master)\n\n## installation\n```shell\nnpm install -S afeiship/next-decimal --registry=https://registry.npm.taobao.org\n```\n\n## usage\n```javascript\nimport NxDecimal from 'next-decimal';\n\n// usage:\nNxDecimal.add(0.1,0.2,0.3);\nNxDecimal.sub(0.3,0.1);\nNxDecimal.mul(0.3,0.1,0.2);\nNxDecimal.div(0.3,0.1);\n```\n\n## bug\n```js\n// BUG:\n20.01*100 = 2001.0000000000002\n0.1 * 10  = 1\n\n// so:\n20.01 * 1000 \n```\n\n## resources\n+ http://mochajs.org/\n+ http://www.cnblogs.com/slowsoul/archive/2013/06/12/3132821.html\n+ http://ourjs.com/detail/54695381bc3f9b154e000046\n+ https://github.com/blog/1270-easier-builds-and-deployments-using-git-over-https-and-oauth\n+ http://blog.csdn.net/woblog/article/details/51319364\n+ https://gist.github.com/domenic/ec8b0fc8ab45f39403dd\n+ http://blog.tgrrtt.com/exploring-the-travisci-configuration-file\n+ https://rmflight.github.io/posts/2014/11/travis_ci_gh_pages.html\n+ https://medium.com/@nthgergo/publishing-gh-pages-with-travis-ci-53a8270e87db#.8oafn2vhv\n+ https://segmentfault.com/a/1190000004714256\n+ http://lotabout.me/2016/Hexo-Auto-Deploy-to-Github/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-decimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-decimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-decimal/lists"}