# Convert Number/Money To Words - numbersinwords

File Size: 18.8 KB 83 04/13/2020 03:47:00 UTC 04/10/2020 03:12:27 UTC Go to website MIT

Yet another numbers to words converter that converts any numeric and currency values into words equivalent.

• BR
• PT
• UK
• US
• EUR
• USD

## How to use it:

1. Load the JavaScript jquery-numbersinwords.js after jQuery library and we're ready to go.

```<script src="/path/to/cdn/jquery.slim.min.js"></script>
<script src="/path/to/jquery-numbersinwords.js"></script>
```

2. Create a container to hold the words.

```<div id="demo"></div>
```

3. Convert a numerica value into words.

```\$('#demo').numbersinwords('123456','UK');
\$('#demo').numbersinwords('123456','US');

=> one hundred and twenty three thousand, four hundred and fifty six

\$('#demo').numbersinwords('123456','PT');
\$('#demo').numbersinwords('123456','BR');

=> cento e vinte e três mil, quatrocentos e cinquenta e seis
```

4. Convert a numerica value into words as currency.

```\$('#demo').moneyinwords('1234,56','US','USD');
\$('#demo').moneyinwords('1234,56','UK','USD');

=> one thousand, two hundred and thirty four dollars and fifty six cents

\$('#demo').moneyinwords('1234,56','US','EUR');
\$('#demo').moneyinwords('1234,56','UK','EUR');

=> one thousand, two hundred and thirty four euros and fifty six cêntimos

\$('#demo').moneyinwords('1234,56','PT','EUR');
\$('#demo').moneyinwords('1234,56','BR','EUR');

=> mil, duzentos e trinta e quatro euros e cinquenta e seis cêntimos

\$('#demo').moneyinwords('1234,56','PT','USD');
\$('#demo').moneyinwords('1234,56','BR','USD');

=> mil, duzentos e trinta e quatro dollars e cinquenta e seis cents```

This awesome jQuery plugin is developed by joaoreisweb. For more Advanced Usages, please check the demo page or visit the official website.