From: Sebastian Hungerecker Date: 2007-08-27T05:41:41+09:00 Subject: Re: Strict conversion of strings to ints? Kenneth McDonald wrote: > James Edward Gray II wrote: > > >> Integer("junk") > > > > ArgumentError: invalid value for Integer: "junk" > So, I want an integer conversion function that throws an error if the > _entire_ string can't be interpreted as an integer; the Ruby analog to > the standard string-to-int conversion function in most other languages. Ehrm, >>Integer("12,345") ArgumentError: invalid value for Integer: "12,345" That's exactly what you wanted, right? So what's the problem? -- NP: Anathema - The Sweet Suffering Jabber: sepp2k@jabber.org ICQ: 205544826