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/.