Skip to content
MusarrathSPublic

About

Converts Numbers (including decimal points) into words for Indian style.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Number to Words

Introduction

Converts Numbers (including decimal points) into words for Indian style. It also converts the numbers into words for currency, again, for Indian style.

Installation

npm install to-words --save

OR

yarn add to-words

Usage

let toWords = require('to-words');
let words = toWords(123); // words = One Hundred Twenty Three

words = toWords(123.45); // words = One Hundred Twenty Three Point Fourty Five

To convert to currency

let toWords = require('to-words');
let words = toWords(452, {currency: true}); // words = Four Hundred Fifty Two Rupee Only

words = toWords(452.36, {currency: true}); // words = Four Hundred Fifty Two Rupee And Thirty Six Paise Only

Inspiration

https://stackoverflow.com/a/46221860

About

Converts Numbers (including decimal points) into words for Indian style.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages