From: Jean-Julien Fleck Date: 2010-02-22T02:46:13+09:00 Subject: Re: Yet another rounding issue Hello, > Can someone please tell me how do I round 2.175 to 2.18, besides > ((2.175*100).to_s+'9').to_f.round/100.0 ? I guess bigdecimal should be the answer >> (2.175*100).round => 217 >> require 'bigdecimal' => true >> a = BigDecimal("2.175") => # >> (a*100).round.to_s => "0.218E3" Cheers, -- JJ Fleck PCSI1 Lycée Kléber