number_display 2.2.1
number_display: ^2.2.1 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
}