'How to covert number to words in velocity template?

I am using velocity template, I want to convert number to words, Is there any library present for that?

eg: 99999999 = ninety-nine million nine hundred ninety-nine thousand nine hundred ninety-nine



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source