Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Numeric locale
Bertram Scharpf
6/4/2007 12:39:00 PM
Hi,
the German decimal separator is ",". So pi will be
represented by "3,1415" rather than "3.1415". As far as I
know this behaviour is controlled by the LC_NUMERIC
environment variable.
Now, I notice the following on my system: When I'm in editor
Vim I may say in command mode:
:ruby puts 4.56
:!ruby -e 'puts 4.56'
The former is the built-in ruby interface, the latter a call
to a child process and will show thats standard output.
But I happen to encounter two different results. The
built-in version gives "4,56"; the child process prints
"4.56".
How can I make the normal Ruby process print a comma, too?
Thanks in advance
Bertram
--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Numeric locale
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password