Comments (3)
Thank you for finding this bug and for the suggested fix @MatthewHerbst ! The fix has been published in release version v4.0.1.
By the way, you said this package is not maintained in your StackOverflow link. That's untrue; I consider this package feature-complete and tend to prioritize bugfixes over feature requests. I'm not perfect, but I do the best I can with the time I have available.
from millify.
v5.0.0 has now been published with a graceful fallback for invalid values. Didn't have frontend/UI in mind when I wrote this library, but I think it makes sense.
from millify.
Good to know, thanks!!
from millify.
Related Issues (17)
- CLI version HOT 1
- require('millify') is no longer a function HOT 4
- Throw error if unit index is greater than units array size HOT 1
- significant digits? HOT 1
- Any plans to support BigInts? HOT 2
- Handle big number HOT 1
- millify is not a function HOT 16
- Values rounded up to 1000K are not converted to 1M HOT 3
- [error] l got this error HOT 2
- Decimal parameter doesn't work as expected
- Number rounds up erroneously HOT 4
- RFE: Should support strict precision HOT 1
- Types don't match code when this library is used in ESM HOT 1
- Unexpected token operator when doing a build using create-react-app HOT 5
- Not working with some numbers
- Changelog for version 3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from millify.