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

outdated

Amount helps to convert numerical amount to words.

amount #

Platform Pub Package License: MIT Donate Issue Forks Stars

amount is a dart library to convert numerical amount to words.

Table of Contents #

Lets Get Started #

1. Depend on it #

Add this to your package's pubspec.yaml file:

dependencies:
  amount: ^1.0.0

2. Install it #

You can install packages from the command line:

with pub:

$  pub get

3. Import it #

Now in your Dart code, you can use:

    import 'package:amount/amount.dart';

Usage #

Imports #

    import 'package:amount/amount.dart';
    

Convert Amount to word #


    var val1 = 1000;
    String result1 = Amount.word(val1);
    print('$val1 -> $result1');

    var val2 = 26042021;
    String result2 = Amount.word(val2);
    print('$val2 -> $result2');

    // 1000 -> one thousand 
    // 26042021 -> two crore sixty lakh forty two thousand and twenty one 

    

Features coming in next version #

On-going implementation for future:

  • support for numbers of length >= 10

Oooooooops, My laptop is slow, but I'm not.

  • Paypal
  • Not having Paypal account ?? Join Now and both of us could earn $10
1
likes
30
pub points
32%
popularity

Publisher

verified publisherjustkawal.dev

Amount helps to convert numerical amount to words.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

More

Packages that depend on amount