indian_currency_to_word

Creator: coderz1093

Last updated:

Add to Cart

Description:

indian currency to word

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
copied to clipboard
OR
Add a line like this to your package's pubspec.yaml:
dependencies:
indian_currency_to_word: ^0.0.7
copied to clipboard
Importing
import "package:indian_currency_to_word/indian_currency_to_word";
copied to clipboard
NOTE
The number must be double and there is a optional argument ignoreDecimal
ignoreDecimal: false
copied to clipboard
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);
copied to clipboard
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);
copied to clipboard
Additional information #
To contribute or provide any suggestion contact me on my github or check my portfolio for contact information:
Porfolio
Star History #

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.