number_display 3.0.0 copy "number_display: ^3.0.0" to clipboard
number_display: ^3.0.0 copied to clipboard

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 #

2021-03-21

  • Support null safety.

2.3.0 #

2020-06-02

  • Make decimal point configurable.

2.2.1 #

2020-03-12

  • Fix README.

2.2.0 #

2020-03-12

  • Make seporator and units configurable.

2.1.3 #

2020-01-07

  • Update license to 2020.
  • Omit type annotations for local variables in line 73, 79.

2.1.2 #

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.0 #

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.1 #

2019-07-31

  • Enlarge SDK requirement to ">=2.1.0 <3.0.0".

2.0.0 #

2019-07-30

  • Simplify APIs, details in README.md.
  • Optimize performance.
  • Add unit test.
  • Remove decimal trailing zeros.

1.0.1 #

2019-02-07

  • Add some documents.

1.0.0 #

2019-02-07

  • Init this package.
76
likes
130
pub points
91%
popularity

Publisher

unverified uploader

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on number_display