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

A Flutter package for both iOS and Android that converts a given amount to word in Indian Locale.

A Flutter package for both iOS and Android that converts a given amount to word in Indian Locale. Currently it support conversion till Crore. The maximum number is (999999999).

Features #

Converts amount to word in indian locale.

Getting started #

There is no prerequisites required to use this library. The library is usefull when you are working with money related projects one such example could be a payroll system.

Usage #

Installing

Run the command:

foo@bar:~$ flutter pub add indian_currency_to_word

OR

Add a line like this to your package's pubspec.yaml:

dependencies:
  indian_currency_to_word: ^0.0.7

Importing

import "package:indian_currency_to_word/indian_currency_to_word";

NOTE

The number must be double and there is a optional argument ignoreDecimal

ignoreDecimal: false

by default its set to false.

Example:

With decimal

import "package:indian_currency_to_word/indian_currency_to_word";

final converter = AmountToWords();
// The number argument must be of type double.
var number = 999991.12;

var word =  converter.convertAmountToWords(number);
print(word);

Without decimal

import "package:indian_currency_to_word/indian_currency_to_word";

final converter = AmountToWords();
// The number argument must be of type double.
var number = 999991.12;

var word =  converter.convertAmountToWords(number, ignoreDecimal: true);
print(word);

Additional information #

To contribute or provide any suggestion contact me on my github or check my portfolio for contact information:

Porfolio

Star History #

Star History Chart

5
likes
160
pub points
94%
popularity

Publisher

verified publisherdayananda.tech

A Flutter package for both iOS and Android that converts a given amount to word in Indian Locale.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on indian_currency_to_word