pp 1.0.0 copy "pp: ^1.0.0" to clipboard
pp: ^1.0.0 copied to clipboard

A package to convert numbers into strings to easily readable.

A Dart package to show numbers in the form like 10,000 = 10K+, 10,00,000 = 1M+ etc

Features #

  • Converting numbers below 1000
    • Input int 10 => 10
    • Input int 12 => 10+
    • Input int 504 => 500+
  • Converting thousand digits like
    • 10,000 => 10K
    • 10,500 => 10K+
  • Converting Millions/Lakh digits like
    • 100,000 => 100K+
    • 10,00,000 => 1M
    • 10,00,500 => 1M+
  • Converting Billions digits like
    • 100,000,0000 => 1B
    • 100,000,5000 => 1B+

Getting started #

Add dependency in the pubspec.yaml and import this line to start using this package

import 'package:pp/src/pp_base.dart';

Usage #

import 'package:pp/src/pp_base.dart';

void main() {
  int numbers = 11543;
  String s = numbers.roundOfNumbers();
  print(s); /// output s = 11K+ 
}
2
likes
160
pub points
15%
popularity

Publisher

unverified uploader

A package to convert numbers into strings to easily readable.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on pp