millie 0.1.0 copy "millie: ^0.1.0" to clipboard
millie: ^0.1.0 copied to clipboard

Convert big numbers to what's pleasant to see (an adorable, little girl, perhaps?)

example/millie_example.dart

import 'package:millie/millie.dart';

void main() {
  print(millify(4200)); // prints 4.2K
  print(millify(10000, lowercase: true)); // prints 10k
  print(millify(1250000, space: true, lowercase: true, precision: 3)); // prints 1.25 m
  print(millify(1000040000, precision: 6)); // prints 1.00004B
  print(millify(100000000000000000)); // prints 100P
  print(millify(-7809, precision: 3, space: true)); // prints -7.809 K
}
4
likes
150
pub points
44%
popularity

Publisher

unverified uploader

Convert big numbers to what's pleasant to see (an adorable, little girl, perhaps?)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on millie