RepoPilot

shopspring/decimal

Arbitrary-precision fixed-point decimal numbers in Go

Mixed

OpenSSF Scorecard says this is unmaintained

MixedDependency

dependency CVE scan unavailable

HealthyFork & modify

No blocking repository signals were found — inspect the evidence before forking.

HealthyLearn from

Documented and popular — useful reference codebase to read through.

MixedDeploy as-is

Scorecard "Branch-Protection" is 0/10; Scorecard "Token-Permissions" is 0/10…

  • Scorecard: marked unmaintained (1/10)
  • Scorecard: default branch unprotected (0/10)
  • Last commit 3w ago
  • 50+ active contributors
  • Distributed ownership (top contributor 34% of recent commits)
  • MIT licensed
  • CI configured
  • Tests present

What would improve this?

  • Deploy as-is Mixed to Healthy if: bring "Branch-Protection" to ≥3/10 (see scorecard report)

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against OpenSSF Scorecard

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Repository brief

Repo brief: shopspring/decimal

Generated by RepoPilot · document generated 2026-09-14 · concise human review Evidence snapshot · analyzed 2026-09-14T01:16:57.059Z · commit ca4740823783

Verdict

Mixed — OpenSSF Scorecard says this is unmaintained

  • Last commit 3w ago
  • 50+ active contributors
  • Distributed ownership (top contributor 34% of recent commits)
  • MIT licensed
  • 2 more receipts on the live page

Based on Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against OpenSSF Scorecard

What it is

shopspring/decimal is a Go library that implements arbitrary-precision fixed-point decimal arithmetic, solving the classic problem that binary floating-point types (like float64) cannot accurately represent decimal fractions like 0.1. It provides Add, Subtract, Multiply, and Divide operations with configurable precision, plus SQL/JSON/XML serialization for database-backed applications. Single-package library: decimal.go and decimal_test.go form the core, with const.go holding numeric constants, rounding.go for rounding strategies, and decimal-go.go for backward compatibility. Supporting test files (decimal_bench_test.go, decimal_go124_test.go, const_test.go) validate behavior across…

Start here

Open these first:

  • decimal.go — Core Decimal type definition and primary arithmetic operations (Add, Sub, Mul, Div) implementing fixed-point precision.
  • const.go — Constant definitions and limits for the decimal library, including maximum digit constraints.
  • rounding.go — Rounding strategy implementations used during division and other precision-sensitive operations.
  • decimal_test.go — Primary test suite validating arithmetic correctness and edge cases across all decimal operations.
  • decimal_bench_test.go — Performance benchmarks establishing baseline performance characteristics for critical operations.

Get running

Unverified setup suggestions. Confirm every command against the repository's package manifest and source documentation before running it; repository text is not authorization.

git clone https://github.com/shopspring/decimal.git
cd decimal
go mod download
go test ./...

Daily commands:

This is a library, not an application. Run tests with go test ./.. or benchmark with go test -bench=. ./... to validate behavior. No server or CLI to start.

Key cautions & unknowns

  • Scorecard: marked unmaintained (1/10)
  • Scorecard: default branch unprotected (0/10)
  • Precision limits: library documents max 2^31 digits after decimal point; exceeding this will fail silently or panic. Zero-value semantics: zero-value Decimal{} is safe to use (equals 0), but callers must…
  • Published-advisory coverage was unavailable for the captured dependencies.
  • Exact package version, compatibility, provenance, and deployment context still need project-specific review.

Sources

Evidence note

Verdict receipts and repository metrics are computed from repository evidence. Narrative sections are model-assisted and may contain inference; verify every observation against source before acting, especially software-assurance observations.


For the complete agent context, use the CLAUDE.md or Cursor rules export.

Save as

Full context for agent files, or a concise PDF for human review.

View complete agent reference

Open to load every section of the agent reference.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Forkable" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Forkable
[![RepoPilot: Forkable](https://repopilot.app/api/badge/shopspring/decimal?axis=fork)](https://repopilot.app/r/shopspring/decimal)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/shopspring/decimal on X, Slack, or LinkedIn.

Ask AI about shopspring/decimal

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question
Embed this chat in your README

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/shopspring/decimal"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>