From: Saravanan Krishnan Date: 2007-12-19T15:54:50+09:00 Subject: Re: Round off float value olavi ivask wrote: > Hi, > > you can do like this: > > number = 179.9485 > printf('%.2f', number) > > this one prints out 179.95 > > Olavi Ivask Thanks for your instant reply. here i want to store that value not to print. Regards saravanan.K -- Posted via http://www.ruby-forum.com/.