Skip to content

sashkopavlenko/NumberToText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number To Text Converter

Inspired by Peter Ajtai solution, which you can find here.

This code allows you easily convert numbers in the range from -999,999,999 to 999,999,999 into words in English, Ukrainian or Russian. There are 3 main classes (1 class for each language), to convert number you should use convertNumber method:

echo ConvertToEnglish::convertNumber(1234); 
// outputs "one thousand two hundred and thirty-four"

This code is free software, so feel free to copy, change and modify it accordingly to your needs.

About

Simple function to convert numbers into words

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages