dnum
github.com · Package · Active
Small TypeScript library for big decimal numbers
- Developer tools
- Package
- TypeScript
- Day-7 check
- Day-30 check
- decimal
- typescript
- math
- library
- 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 dnumpnpm add dnumbun add dnumConfirmed 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
- Repository created on GitHub: bpierre/dnum
- Release v1.0.1
- Found: bpierre posted it to Show HN. Show HN
- Release v2.14.0
- Release v2.15.0
- Release v2.16.0
- Release v2.17.0
- Release v2.18.0
- Release v2.18.1
- Day-7 check recorded by Kip (details)
- 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
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | bpierre/dnum REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-37322350. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.