SyntaxFix
Write A Post
Hire A Developer
Questions
The following is another method that will work, although as with some of the other methods it will strip decimal places.
a = 1,112 b = a.scan(/\d+/).join().to_i => 1112