From: "Bartosz DziewoƄski" Date: 2012-07-17T00:15:06+09:00 Subject: Re: rounding to nearest even: nio gem? I'm not sure I understand what exactly do you want to do, or why would you want to do that. You could try dividing the number by two, rounding, and multiplying by two again. This should give you the results you want. irb(main):014:0> ( 8.5 /2).round(0)*2 => 8 irb(main):015:0> ( 7.5 /2).round(0)*2 => 8 irb(main):016:0> ( 1.0345 /2).round(3)*2 => 1.034 irb(main):017:0> ( 1.0335 /2).round(3)*2 => 1.034 irb(main):018:0> ( 1.0355 /2).round(3)*2 => 1.036 irb(main):019:0> ( 1.0354 /2).round(3)*2 => 1.036 -- Matma Rex