humanize_big_int 1.0.1 copy "humanize_big_int: ^1.0.1" to clipboard
humanize_big_int: ^1.0.1 copied to clipboard

A simple dart package to convert large numbers to a human readable format. 1278 to 1.2K instead, for example.

example/humanize_big_int_example.dart

import 'package:humanize_big_int/humanize_big_int.dart';

void main() {
  // humanizeInt
  print(humanizeInt(234)); // 234
  print(humanizeInt(1234)); // 1.2K
  print(humanizeInt(12340000)); // 12M
  print(humanizeInt(123400000000000)); // 123T
  print(humanizeInt(1234000000000000000)); // 1234Q

  // humanizeIntInd
  print(humanizeIntInd(234)); // 234
  print(humanizeIntInd(1234)); // 1.2K
  print(humanizeIntInd(123400)); // 1.2L
  print(humanizeIntInd(123400000)); // 12Cr
  print(humanizeIntInd(12340000000)); // 1234Cr
}
2
likes
140
pub points
74%
popularity

Publisher

unverified uploader

A simple dart package to convert large numbers to a human readable format. 1278 to 1.2K instead, for example.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on humanize_big_int