I’ve created a plugin that lets you spell out numbers (under one
thousand, in English, for now).
Examples:
23.spell
=> “twenty-three”
23.spell :noun => ‘person’
=> “twenty-three people”
(23.14).spell_currency
=> “twenty-three dollars and fourteen cents”
(23.14).spell_currency(:major => ‘beer’, :minor => ‘shot’)
=> “twenty-three beers and fourteen shots”
It’s available in the regular plugin interface after a “script/plugin
discover”.
(Thanks to Rick O. for inspiring me to get off my ass and release
this.)
-Ben
Benjamin S. wrote:
I’ve created a plugin that lets you spell out numbers (under one
thousand, in English, for now).
Examples:
23.spell
=> “twenty-three”
23.spell :noun => ‘person’
=> “twenty-three people”
(23.14).spell_currency
=> “twenty-three dollars and fourteen cents”
(23.14).spell_currency(:major => ‘beer’, :minor => ‘shot’)
=> “twenty-three beers and fourteen shots”
It’s available in the regular plugin interface after a “script/plugin
discover”.
(Thanks to Rick O. for inspiring me to get off my ass and release
this.)
-Ben
Take a look at this to avoid the <1,000 limitation.
Take a look at this to avoid the <1,000 limitation.
BigBold - Informasi Tentang Bisnis dan Marketing
Nice. The rest of that code looks structurally cleaner, too; I’ll
pick up the changes in the next few days, unless someone wants to
write a patch.
-Ben