[wxruby-users] float to_s behavior

Svend Haugaard Sørensen shs at demosophia.net
Sun Aug 24 08:03:52 EDT 2008


Does wxruby change the behavior of to_s for float ?

If I run this little program  

a = [1.23,4.56,7.89]
puts a.join(' ')

I get the following output
1.23 4.56 7.89

As your would expect, but if I add it to a program that uses wxruby the
output is 
1,23 4,56 7,89

According to danish grammar(I am from Denmark) this is the correct way
to write numbers but this charge mess with all data files I write.

How can I change it back to the original form ? 



More information about the wxruby-users mailing list