Convert Number to Word

Table of Contents


I introduce the way to convert number to word

PHP

PECL has a nice class, NumberFormatter.

JVM

I released the library (JAR) to convert number to word in JVM, written in Kotlin.

kotlin-number-tool

Here is a sample code in Kotlin.

Ruby

There are many gems for it. Here, I show a sample code of numbers_and_words gem.

Python

num2words is a good tool for it. You can download with pip install num2words.