Roger Pack wrote: >>> ~/src/ruby> RUBYOPT='' ./ruby -e 'x=0.123; puts x' >>> 123.0 > > on Ubuntu 8.04.3 LTS I don't seem to get it. > > $ ./ruby -ve 'x=0.123; puts x' > ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux] > 0.123 > > If that is any help. > -r That's consistent with my experience through ubuntu 9.04. Also, the ubuntu-packaged ruby (which is 1.8.7) doesn't have the problem in 9.10. It appears to be a gcc version issue. With 4.4.1, floats break; with 4.3.4, all is ok. Maybe this is related to the date parsing issue with 4.4.1 (when building the syntax gem). It sounds like gcc 4.4.2 fixes some "serious bugs" in 4.4.1 [1], but the ubuntu packagers are reluctant to upgrade.[2] Fortunately, gcc-4.3 is easy to apt-get. [1] http://freesoftnews.com/archives/18347 [2] https://answers.launchpad.net/ubuntu/+source/gcc-4.4/+question/91976 -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407