search for: to_english

Displaying 2 results from an estimated 2 matches for "to_english".

2006 May 10
3
NumbersToWords
...or japaneese words,or translate it into american currency - This plugin was created from a solution to the ruby quiz (english numbers) by Matthew D Moss. I modified the code to work as a rails plugin and added the to_dollars method. - the to_dollars method will work with integers and floats - the to_english and to_japaneese methods will only work with integers. If you have call these methods on a float, it will be converted to an integer before translating. = Examples 123.to_english == one hundred and twenty-three 123.to_japaneese == hyaku niju san 123.to_dollars == one hundred and twenty-three do...
2006 Apr 30
8
format numbers as words
Does anyone know if there is a function available which can format any entered number as words? eg: ''1234'' would be ''One Thousand Two Hundred and Thirty Four'' In the past, I would have said this is a tall order, but from what I''ve seen with playing with rails for a short time, I don''t know what to expect. :) Thanks for any help, Damien