{"adoption": {"forks": 322, "observed_at": "2026-08-28T04:08:35.427096+00:00", "stars": 4097}, "canonical_url": "https://ross.abutalabs.com/products/number-precision", "card": {"archived": false, "artifact_type": "library", "description": "🚀1K tiny & fast lib for doing addition, subtraction, multiplication and division operations precisely", "domain": ["developer-tools", "web-development"], "enriched": true, "function": ["math", "serialization"], "health_score": 20, "homepage": null, "language": "TypeScript", "license": null, "license_family": "other", "maturity": "stable", "member_repos": ["nefe/number-precision"], "name": "nefe/number-precision", "platform": ["browser"], "pushed_at": "2024-06-11T02:08:46+00:00", "repo": "nefe/number-precision", "stars": 4097, "tags": ["floating-point", "arithmetic", "rounding-error", "typescript", "tiny-library", "algorithms", "nodejs", "javascript"], "topics": ["floating-point", "number-converter", "rounding-error"], "urls": [], "use_cases": ["fix 0.1 + 0.2 floating point errors in javascript", "precise decimal arithmetic for money calculations", "round 0.105 to 2 decimal places correctly", "avoid floating point precision bugs in frontend apps", "accurate multiplication like 0.362 * 100", "strip floating point noise from computed numbers"], "what_it_is": "A tiny (~1KB) TypeScript library for JavaScript that performs addition, subtraction, multiplication, and division with exact decimal precision, avoiding floating-point errors like 0.1 + 0.2 = 0.30000000000000004. It also provides number stripping and ratio-based rounding.", "when_to_avoid": ["you need arbitrary-precision or big-number math beyond safe integer boundaries", "you need a full decimal type with configurable precision and scale", "your runtime isn't JavaScript/TypeScript"], "when_to_choose": ["you need exact decimal arithmetic in JavaScript without heavyweight dependencies", "bundle size matters and you only need basic arithmetic operations", "you're doing financial or pricing calculations in a web app"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/number-precision", "repo": "nefe/number-precision", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:23:18.696450+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "168c91b1670fede5dce574ccdc9ed9183bde98fd513f75608da6f0a2613ba9c2", "fetched_at": "2026-08-28T04:08:35.427096+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nefe/number-precision"}, {"content_hash": "0fea445cf2c6930d8184c142b1c76540fe4008ccdc59381b0408039a165ccb59", "fetched_at": "2026-08-29T09:15:09.405045+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/number-precision"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:23:18.696450+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "168c91b1670fede5dce574ccdc9ed9183bde98fd513f75608da6f0a2613ba9c2", "fetched_at": "2026-08-28T04:08:35.427096+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nefe/number-precision"}, {"content_hash": "0fea445cf2c6930d8184c142b1c76540fe4008ccdc59381b0408039a165ccb59", "fetched_at": "2026-08-29T09:15:09.405045+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/number-precision"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:23:18.696450+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "168c91b1670fede5dce574ccdc9ed9183bde98fd513f75608da6f0a2613ba9c2", "fetched_at": "2026-08-28T04:08:35.427096+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nefe/number-precision"}, {"content_hash": "0fea445cf2c6930d8184c142b1c76540fe4008ccdc59381b0408039a165ccb59", "fetched_at": "2026-08-29T09:15:09.405045+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/number-precision"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:23:18.696450+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "168c91b1670fede5dce574ccdc9ed9183bde98fd513f75608da6f0a2613ba9c2", "fetched_at": "2026-08-28T04:08:35.427096+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nefe/number-precision"}, {"content_hash": "0fea445cf2c6930d8184c142b1c76540fe4008ccdc59381b0408039a165ccb59", "fetched_at": "2026-08-29T09:15:09.405045+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/number-precision"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:23:18.696450+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "168c91b1670fede5dce574ccdc9ed9183bde98fd513f75608da6f0a2613ba9c2", "fetched_at": "2026-08-28T04:08:35.427096+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nefe/number-precision"}, {"content_hash": "0fea445cf2c6930d8184c142b1c76540fe4008ccdc59381b0408039a165ccb59", "fetched_at": "2026-08-29T09:15:09.405045+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/number-precision"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:23:18.696450+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "168c91b1670fede5dce574ccdc9ed9183bde98fd513f75608da6f0a2613ba9c2", "fetched_at": "2026-08-28T04:08:35.427096+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nefe/number-precision"}, {"content_hash": "0fea445cf2c6930d8184c142b1c76540fe4008ccdc59381b0408039a165ccb59", "fetched_at": "2026-08-29T09:15:09.405045+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/number-precision"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.427096+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:23:18.696450+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "168c91b1670fede5dce574ccdc9ed9183bde98fd513f75608da6f0a2613ba9c2", "fetched_at": "2026-08-28T04:08:35.427096+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nefe/number-precision"}, {"content_hash": "0fea445cf2c6930d8184c142b1c76540fe4008ccdc59381b0408039a165ccb59", "fetched_at": "2026-08-29T09:15:09.405045+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/number-precision"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:23:18.696450+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "168c91b1670fede5dce574ccdc9ed9183bde98fd513f75608da6f0a2613ba9c2", "fetched_at": "2026-08-28T04:08:35.427096+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nefe/number-precision"}, {"content_hash": "0fea445cf2c6930d8184c142b1c76540fe4008ccdc59381b0408039a165ccb59", "fetched_at": "2026-08-29T09:15:09.405045+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/number-precision"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:23:18.696450+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "168c91b1670fede5dce574ccdc9ed9183bde98fd513f75608da6f0a2613ba9c2", "fetched_at": "2026-08-28T04:08:35.427096+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nefe/number-precision"}, {"content_hash": "0fea445cf2c6930d8184c142b1c76540fe4008ccdc59381b0408039a165ccb59", "fetched_at": "2026-08-29T09:15:09.405045+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/number-precision"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:23:18.696450+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "168c91b1670fede5dce574ccdc9ed9183bde98fd513f75608da6f0a2613ba9c2", "fetched_at": "2026-08-28T04:08:35.427096+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nefe/number-precision"}, {"content_hash": "0fea445cf2c6930d8184c142b1c76540fe4008ccdc59381b0408039a165ccb59", "fetched_at": "2026-08-29T09:15:09.405045+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/number-precision"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3299, "days_push": 814, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}