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.

example/main.dart

import 'package:number_display/number_display.dart';

final display = createDisplay(length: 8);

main(List<String> args) {
  print(display(-254623933.876));    // result: -254.62M
}
76
likes
150
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