number_display 3.0.0 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.
import 'package:number_display/number_display.dart';
final display = createDisplay(length: 8);
main(List<String> args) {
print(display(-254623933.876)); // result: -254.62M
}