-
This ruby script converts a number to it's text form. For example, 542 is five hundred and forty two.
-
Use the download button above to grab a copy.
-
This requires a ruby version > 1.9
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]
- To run, first make the scripts executable.
$ cd path/to/downloaded/files/
$ chmod 777 *.rb
- And pass in a number to numtotext.rb
$ ./numtotext.rb 1234567
twelve lakh thirty four thousand five hundred and sixty seven