From: Ernst Tanaka Date: 2007-11-07T00:29:09+09:00 Subject: Re: convert a string into a decimal Paulo Carvalho wrote: > > a="100000000.00" > > a.to_f > => 100000000.0 > > Thank you for the quick reaction. to_f seems not to be the solution a = "13,014,530" a.to_f >> 13.0 The result I am looking for is 13014530 Thanks again. Ernst -- Posted via http://www.ruby-forum.com/.