Displaying 2 results from an estimated 2 matches for "numericformat".
2007 May 12
4
Multiply and format with thousands separator
...e snipet like
<td><%=h mytable.send(:value1)*mytable.send(:value2) %></td>
which does the multiply, but how do I do the formating?
I found this link to some Ruby code that might do this, but where would
I put it and how would I use it?
http://wiki.rubygarden.org/Ruby/page/show/NumericFormat
Thanks
Alan
--
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-/JYPxA39Uh5TLH3Mboc...
2006 Jun 08
1
formatting amount
Hi,
What is the best way to format amount in RoR?
e.g $12000.937 => $12,000.94
Thanks,
Hari
--
Posted via http://www.ruby-forum.com/.