Coder Social home page Coder Social logo

kuromadara / indian_currency_to_word Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 28 KB

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).

License: MIT License

Dart 100.00%
flutter flutter-library collaborate

indian_currency_to_word's Introduction

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

indian_currency_to_word's People

Contributors

kuromadara avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

jitendraan

indian_currency_to_word's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.