An open API service indexing awesome lists of open source software.

https://github.com/lofcz/amount2words


https://github.com/lofcz/amount2words

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

![Nuget](https://img.shields.io/nuget/v/Atw)

# Amount2Words

A simple converter of numbers into their word counterparts. Supports `cz`, `en` languages and `czk`, `eur`, `usd`, `gbp`, `none` currencies.

## Usage

`atw.amountToWords(amount, lang = "cz", curr = "czk")`

## Examples

### C#

```cs
Atw.AmountToWords(150010) -> jedno sto padesát tisíců deset korun českých
Atw.AmountToWords(18) -> osmnáct korun českých
```

### JS

```js
atw.amountToWords(150010) -> jedno sto padesát tisíců deset korun českých
atw.amountToWords(18) -> osmnáct korun českých
atw.amountToWords(115.2) -> jedno sto patnáct korun českých dvacet haléřů
```