/number_names

Text representations of numbers

Primary LanguageRuby

Number Names


Description

A simple gem that converts numbers in ruby to their respective human readable names.

Example

require 'number_names'

1.to_name => "one"
301.to_name => "three hundred and one"
3301.to_name => "three thousand three hundred and one"

Todo

  • Add language support
  • Include floating points

Copyright (C) 2012 Tyler Dooling

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses.