{"id":23300335,"url":"https://github.com/district0x/bignumber","last_synced_at":"2025-07-10T20:34:04.769Z","repository":{"id":57713624,"uuid":"114496106","full_name":"district0x/bignumber","owner":"district0x","description":"Wrapper library for bignumber.js","archived":false,"fork":false,"pushed_at":"2018-01-17T19:33:37.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-03T21:46:34.875Z","etag":null,"topics":["bignumber","clojurescript"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/district0x.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-16T23:13:07.000Z","updated_at":"2022-06-01T23:26:52.000Z","dependencies_parsed_at":"2022-09-18T06:55:34.112Z","dependency_job_id":null,"html_url":"https://github.com/district0x/bignumber","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/district0x%2Fbignumber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/district0x%2Fbignumber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/district0x%2Fbignumber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/district0x%2Fbignumber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/district0x","download_url":"https://codeload.github.com/district0x/bignumber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/district0x%2Fbignumber/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259239378,"owners_count":22826914,"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":["bignumber","clojurescript"],"created_at":"2024-12-20T09:13:24.966Z","updated_at":"2025-07-10T20:34:04.746Z","avatar_url":"https://github.com/district0x.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bignumber\n\nClojurescript wrapper library around [bignumber.js](https://github.com/MikeMcl/bignumber.js/). \n\nOn contrary to the original library, if you pass non-bignumber value into a function, it doesn't throw an error, but fallbacks into `cljs.core` or `js/Math` equivalent. \n\nThis library doesn't come with `cljsjs/bignumber`, because you might have bignumber.js included by other library, such as [web3.js](https://github.com/ethereum/web3.js/).\n\n## Installation\nAdd `[district0x/bignumber \"1.0.3\"]` into your project.clj  \nInclude `[bignumber.core]` in your CLJS file.\n\n## bignumber.core\n**`bignumber? [x]`**  \n*True if number is BigNumber*  \n\n**`number [x]`**  \n*toNumber*  \n\n**`abs [x]`**    \n*abs*\n\n**`ceil [x]`**  \n*ceil*\n\n**`cmp [x \u0026 [base]]`**  \n*cmp (comparedTo)*  \n\n**`dp [x]`**  \n*dp (decimalPlaces)*  \n\n**`/ [x y \u0026 [base]]`**  \n*div*  \n\n**`div-to-int [x y \u0026 [base]]`**  \n*divToInt*  \n\n**`= [x y \u0026 [base]]`**  \n*equals*  \n\n**`floor [x]`**  \n*floor*  \n\n**`\u003e [x y \u0026 [base]]`**  \n*greaterThan*  \n*BigNumbers are comparable event with native operators, so you don't need to use this one.*  \n\n**`\u003e= [x y \u0026 [base]]`**  \n*greaterThanOrEqualTo*  \n*BigNumbers are comparable event with native operators, so you don't need to use this one.*  \n\n**`finite? [x]`**    \n*isFinite*  \n\n**`int? [x]`**  \n*isInt*\n  \n**`nan? [x]`**  \n*isNaN*  \n\n**`neg? [x]`**  \n*isNeg*  \n\n**`zero? [x]`**  \n*isZero*  \n\n**`\u003c [x y \u0026 [base]]`**  \n*lessThan*  \n*BigNumbers are comparable event with native operators, so you don't need to use this one.*  \n\n**`\u003c= [x y \u0026 [base]]`**  \n*lessThanOrEqualTo*  \n*BigNumbers are comparable event with native operators, so you don't need to use this one.*  \n\n**`- [x y \u0026 [base]]`**  \n*minus*  \n\n**`mod [x y \u0026 [base]]`**  \n*mod*  \n\n**`neg [x]`**  \n*negated*  \n\n**`+ [x y \u0026 [base]]`**   \n*plus*  \n\n**`sd [x \u0026 [z]]`**  \n*significantDecimals*  \n\n**`round [x \u0026 [dp rm]]`**  \n*round*  \n\n**`shift [x z]`**  \n*shift*  \n\n**`sqrt [x]`**  \n*sqrt*  \n\n**`\\* [x y \u0026 [base]]`**\n*times*\n\n**`digits [x \u0026 [sd rm]]`**  \n*toDigits*  \n\n**`exponential [x \u0026 [dp rm]]`**  \n*toExponential*  \n\n**`fixed [x \u0026 [dp rm]]`**  \n*toFixed*  \n\n**`format [x \u0026 [dp rm]]`**  \n*toFormat*  \n\n**`fraction [x \u0026 [max]]`**  \n*toFraction*  \n\n**`json [x]`**  \n*toJSON*  \n\n**`pow [x n \u0026 [m]]`**  \n*pow*  \n\n**`precision [x \u0026 [sd rm]]`**  \n*toPrecision*  \n\n**`trunc [x]`**  \n*trunc*  \n\n**`value-of [x]`**  \n*valueOf*  \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistrict0x%2Fbignumber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistrict0x%2Fbignumber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistrict0x%2Fbignumber/lists"}