Javier Solórzano
2006-Jul-26 16:25 UTC
[Rails] European number format - the rational ruby way
Hi There, Users in some european countries like to write 1.234,56 instead of 1,234.56 What would be the easiest way of accepting this number format? For output, I''m using a formatting helper, but I haven''t figured out how to do it for input. thanks, js
Benjamin Meichsner
2007-Jan-18 16:39 UTC
Re: European number format - the rational ruby way
Javier Solrzano wrote:> Hi There, > > Users in some european countries like to write 1.234,56 instead of > 1,234.56 What would be the easiest way of accepting this number > format? For output, I''m using a formatting helper, but I haven''t > figured out how to do it for input. > > thanks, > > jshey javier did you found an answer yet? it would be nice if you (or anyone else) have a solution. thanks benni -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 18 Jan 2007, at 17:39, Benjamin Meichsner wrote:> > Javier Solórzano wrote: >> Hi There, >> Users in some european countries like to write 1.234,56 instead of >> 1,234.56 What would be the easiest way of accepting this number >> format? For output, I''m using a formatting helper, but I haven''t >> figured out how to do it for input. >> thanks, >> js > > hey javier > > did you found an answer yet? it would be nice if you (or anyone > else) have a solution.The Globalize plugin has international number formatting for its currency classes, you could have a look at how they''ve done it. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Seemingly Similar Threads
- problem with database.yml
- nonlinear modeling with rational functions?
- functions for polynomial and rational interplation?
- samba v2.0.3/Solaris 2.5.1/HP-UX 11.0/Rational ClearCase v3.2.1
- About numerical accuracy: should there be a rational number class for fractions?