From: Nikolai Lugovoi Date: 2009-10-04T00:46:02+09:00 Subject: Re: 0.01.to_s -> "1.0" On Sat, Oct 3, 2009 at 6:35 PM, Andriy Tabachyn wrote: >>>ruby -v > ruby 1.8.6 (2009-08-04 patchlevel 383) [i686-linux] >>>irb > irb(main):001:0> 0.123.to_s > => "123.0" > How to receive correct float under Linux. Please advice. That is known bug http://redmine.ruby-lang.org/issues/show/1735 to fix gcc 4.4 optimization, use CFLAGS -fno-strict-aliasing