Pear-numbers_words

Jul 20, 2023

PEAR package provides methods for spelling numerals in words

With Numbers_Words class you can convert numbers written in arabic digits to words in several languages. You can convert an integer between -infinity and infinity. If your system does not support such long numbers you can call Numbers_WordstoWords with just a string.

With the Numbers_WordstoCurrency$num, $locale, ‘USD’ method you can convert a number decimal and fraction part to words with currency name.

The following languages are supported

  • bg Bulgarian
  • cs Czech
  • de German
  • dk Danish
  • en_100 Donald Knuth system, English
  • en_GB British English
  • en_US American English
  • es Spanish Castellano
  • es_AR Argentinian Spanish
  • et Estonian
  • fr French
  • fr_BE French Belgium
  • he Hebrew
  • hu_HU Hungarian
  • id Indonesian
  • it_IT Italian
  • lt Lithuanian
  • nl Dutch
  • pl Polish
  • pt_BR Brazilian Portuguese
  • ru Russian
  • sv Swedish


Checkout these related ports:
  • Zxing-cpp - ZXing C++ Library for QR code recognition
  • Zu-hunspell - Zulu hunspell dictionaries
  • Zu-aspell - Aspell Zulu dictionary
  • Zq - Easier and faster alternative to jq
  • Zorba - General purpose C++ XQuery processor
  • Zenxml - Simple C++ XML Processing
  • Zed - Command-line tool to manage and query Zed data lakes
  • Yq - Command-line YAML and XML processor, jq wrapper for YAML/XML documents
  • Yould - Pronounceable word generator
  • Yodl - Easy to use but powerful document formatting/preparation language
  • Yi-hunspell - Yiddish hunspell dictionaries
  • Yi-aspell - Aspell Yiddish dictionary
  • Yelp-xsl - DocBook XSLT stylesheets for yelp
  • Yelp-tools - Utilities to help manage documentation for Yelp and the web
  • Ydiff - Diff readability enhancer for color terminals