From: Roger Pack Date: 2010-07-14T23:27:43+09:00 Subject: Re: Ruby 1.9.2 float precision > Even though I realize that the templating engine should not be messing > with the ruby pre-defined precisions, I would like to ask what would be > the recommended way to get all ruby versions to behave the same? I think it's something like this for <= 1.9.1 class Float def to_s num = "%.12f" % self num.sub /\.0+$/, '' end end -- Posted via http://www.ruby-forum.com/.