a simple dart package to convert large numbers to a human readable format. 1278 to 1.2k instead, for example.
sample
humanizeint
integer | humanized |
---|---|
1278 | 1.2k |
250 | 250 |
12340000 | 12m |
123400000 | 120m |
usage
humanizeint
final n1 = humanizeint(1234); // 1.2k
final n2 = humanizeint(12340000); // 12m
additional information
this package only offers this niche functionality. for more general use cases, checkout
Comments are closed.