BigDecimal to letters

View: New views
3 Messages — Rating Filter:   Alert me  

BigDecimal to letters

by Jay Mark :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Is there a method that converts BigDecimal 1520.0 to "one thousand five
hundred and twenty"?
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: BigDecimal to letters

by Philip Hallstrom-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> Is there a method that converts BigDecimal 1520.0 to "one thousand  
> five
> hundred and twenty"?

http://english.rubyforge.org/rdoc/index.html

Looks like it will do what you want.

-philip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: BigDecimal to letters

by Jay Mark :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Philip Hallstrom wrote:
>> Is there a method that converts BigDecimal 1520.0 to "one thousand  
>> five
>> hundred and twenty"?
>
> http://english.rubyforge.org/rdoc/index.html
>
> Looks like it will do what you want.
>

It look like it does it for integers. Thanks, I'll use their code as a
starting point.
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

LightInTheBox - Buy quality products at wholesale price!