number_display
To display data in a width-limited component, this function will smartly help you to convert number to a certain chart length. To be simple, plain, flexible and accurate.
3.0.0
2.8K downloads/mo
#4749 most downloaded on pub.dev
entronad/number_display
What this package is like to depend on
Last release 5 years ago
no release in 18 months
Ships fairly regularly
a new release about every 4 months
Most releases are documented
notes for 11 of 13 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
13 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
13 releases · Feb 2019 to Mar 2021Releases
latest 13-
3.0.021 Mar 2021 -
2.3.008 Jun 2020 -
2.2.112 Mar 2020 -
2.2.012 Mar 2020 -
2.1.408 Jan 2020Nothing published for this version
-
2.1.307 Jan 2020Release notes
Open source →2020-01-07
- Update license to 2020.
- Omit type annotations for local variables in line 73, 79.
-
2.1.207 Dec 2019Release notes
Open source →2019-12-07
- Change back param precision name to 'decimal', to avoid confusion with the common 'toPrecision' meaning.
- Add inner precision limit to avoid float error.
-
2.1.005 Dec 2019Release notes
Open source →2019-12-05
- Add feature: roundingType. Now you can set the way to round the decimal in 'round', 'floor' or 'ceil', witch default to 'round'.
- When the length is too small, number-display will return the origin value as a string, instead of throwing an error.
- Change param decimal name to 'precision', and default to equal to param length, witch means no additional limit.
- Change param comma name to 'separator'.
-
2.0.131 Jul 2019 -
2.0.030 Jul 2019Release notes
Open source →2019-07-30
- Simplify APIs, details in README.md.
- Optimize performance.
- Add unit test.
- Remove decimal trailing zeros.
-
1.0.107 Feb 2019 -
1.0.007 Feb 2019 -
0.0.104 Feb 2019Nothing published for this version