Latest / Developer tools

dnum

github.com · Package · Active

Small TypeScript library for big decimal numbers

Visit github.com ↗Share

  • decimal
  • bigint decimals
  • decimal arithmetic javascrip
  • precise decimal math
  • typescript decimal library
  • fixed precision numbers
Stars
306
Forks
10
Open issues
0
Last commit
Releases
38
Found
3 years ago

GitHub figures as of . They are context, not a ranking.

dnum is a small TypeScript library for working with big decimal numbers. It is intended for developers who need decimal arithmetic in TypeScript or JavaScript projects, and the repository is the main place to find its API.

Repository description on GitHub: “🧮 Small library for big decimal numbers.”

What it does

  • Represents numbers as a BigInt value plus a decimal precision
  • Parses numbers from strings and formats them for display
  • Provides math functions for everyday apps

Good for

  • Do exact decimal arithmetic on token amounts in TypeScript
  • Format large decimal values for display in an app

Suits: TypeScript developers who need exact big decimal arithmetic.

What you can try

Read the README on GitHub and install from source.

Install

npm install dnum
pnpm add dnum
bun add dnum

Confirmed against the package registry. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw dnum on , when bpierre posted it to Show HN. The oldest published release on GitHub is v1.0.1, dated . dnum had been shipping tagged releases for 467 days before it was found. 38 releases have been published in total; the latest is v2.18.1 ().

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 42 points, 20 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 2 releases shipped

  • 2 releases in the first 30 days: v2.8.1 (14 Sep 2023), v2.9.0 (25 Sep 2023)
  • Show HN discussion at check time: 42 points, 20 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (5 in total, busiest month 2). Based on the most recent releases on record.
  1. Repository created on GitHub: bpierre/dnum
  2. Release v1.0.1
  3. Found: bpierre posted it to Show HN. Show HN
  4. Release v2.14.0
  5. Release v2.15.0
  6. Release v2.16.0
  7. Release v2.17.0
  8. Release v2.18.0
  9. Release v2.18.1
  10. Day-7 check recorded by Kip (details)
  11. Day-30 check recorded by Kip (details)

Showing the first and the 6 latest of 38 releases. All releases on GitHub

Quick answers

When was dnum released?
Its first tagged release on GitHub is dated 20 May 2022. Kip found it on Show HN on 30 Aug 2023.
Is dnum open source?
Its source is public on GitHub at bpierre/dnum under the MIT licence.
What does dnum run on?
Library.
Is dnum free?
It is open source, so the code is free to read and run; check the licence for terms.
Is dnum still maintained?
Yes. It had a commit or release in the last 90 days as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorybpierre/dnum
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-37322350. Summary written by KipFound’s editor.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.