Liking cljdoc? Tell your friends :D
Clojure only.

numords.core

Convert Western Arabic numbers to words, including decimal points.

Convert Western Arabic numbers to words, including decimal points.
raw docstring

number->wordsclj

(number->words number)

Convert Western Arabic numbers into words by taking an integer (in the mathematical scene) from -n, 0, n and converting it into it's respective British English words. It can work with decimal points too.

Some examples:

(number->words -1) ;; "minus one"
(number->words 0) ;; "zero"
(number->words 999) ;; "nine hundred and ninety nine"
(number->words 999.1) ;; "nine hundred and ninety nine point one"
(number->words 1000) ;; "one thousand"
(number->words 2500) ;; "two thousand five hundred"
(number->words 3333.345) ;; "three thousand three hundred and thirty three point three four five"
Convert Western Arabic numbers into words by taking an `integer` (in the mathematical scene)
from -n, 0, n and converting it into it's respective British English words. It can work with
decimal points too.

Some examples:

```clojure
(number->words -1) ;; "minus one"
(number->words 0) ;; "zero"
(number->words 999) ;; "nine hundred and ninety nine"
(number->words 999.1) ;; "nine hundred and ninety nine point one"
(number->words 1000) ;; "one thousand"
(number->words 2500) ;; "two thousand five hundred"
(number->words 3333.345) ;; "three thousand three hundred and thirty three point three four five"
```
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close