v1="128.015"
puts((v1.to_f*1000).to_i).to_s // giving 128014 instead of 128015

Why the the result is rounding up to 128014 but the correct result
should be 128015.
-- 
Posted via http://www.ruby-forum.com/.