List Info

Thread: European number format - the rational ruby way




European number format - the rational ruby way
user name
2006-07-26 11:49:39
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 
_______________________________________________
Rails mailing list
Railslists.rubyonrails.org
h
ttp://lists.rubyonrails.org/mailman/listinfo/rails
Re: European number format - the rational ruby way
user name
2007-01-18 10:39:40
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.

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-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: European number format - the rational ruby way
user name
2007-01-18 11:41:36

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-talkgooglegroups.com
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )