shopspring

    shopspring/decimal

    Arbitrary-precision fixed-point decimal numbers in Go

    7.5K stars
    693 forks
    7.5K GitHub watchers
    Updated Nov 1, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    2 releases in the last 90 days, the latest 15 days ago, with 75 contributors on GitHub.

    Gained 59% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides arbitrary-precision fixed-point decimal arithmetic in Go for accurate decimal calculations.
    • Ensures exact decimal representation and arithmetic without floating-point errors, ideal for financial computations.
    • Use for handling monetary values in Go applications requiring precise decimal math and serialization support.
    • Use for performing high-precision calculations in scientific or statistical software where rounding errors are unacceptable.
    • Use for building APIs or services that require reliable JSON and database serialization of decimal numbers.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Other

    GitHub could not identify this license; read the LICENSE file before depending on it.

    Community files

    • README: present

    Watch-outs

    • License not identified by GitHub; read the LICENSE file before depending on it.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Arbitrary-precision fixed-point decimal numbers in go.

    Note: Decimal library can "only" represent numbers with a maximum of 2^31 digits after the decimal point.

    Run go get github.com/shopspring/decimal

    Excerpt from the shopspring/decimal README on GitHub (NOASSERTION license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    693+17

    Open issues

    53-102

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    shopspring/decimal compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills192.3K+5.2K75—
    zed-industries/zed94.7K+2.3K756 days ago
    google/skills23.8K+2.0K75—
    NationalSecurityAgency/ghidra99.4K+1.8K7519 days ago
    DuarteSantos8/openGym20.8K+1.7K757 days ago
    shopspring/decimal7.5K—5415 days ago
    Category median94.7K+2.0K75—

    Discover Repositories

    Search across tracked repositories by name or description