openexchangerates / accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.
http://openexchangerates.github.io/accounting.js
MIT License
4.96k stars 530 forks source link

Numbers to Words #89

Open notsle opened 10 years ago

notsle commented 10 years ago

it would be very helpful to include the ability to convert a dollar amount to words.

For example: $1,578.32 to "one thousand five hundred and seventy eight dollars and thirty two cents"

spidergears commented 8 years ago

Sounds cool...

spidergears commented 8 years ago

I am looking into this. Adding support for both Arabic and Indian format. Wiki link for formatting info: https://en.wikipedia.org/wiki/Indian_numbering_system