From: Brandon Weaver Date: 2012-12-28T03:40:08+09:00 Subject: numeric? --047d7b33d6504661bb04d1d9e0b3 Content-Type: text/plain; charset=ISO-8859-1 I've found a bit of an annoyance trying to find out if a number is numeric or not. I thought it would probably be a simple string method but I found far more contrived solutions like regex matches. Eventually I settled on monkey patching string with a Numeric? method using Float(self)! = nil rescue false. Is there a better way to go about this? If not, can we get something added to the core? Thanks for your time, Brandon --047d7b33d6504661bb04d1d9e0b3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I've found a bit of an annoyance trying to find out if a number is n= umeric or not. I thought it would probably be a simple string method but I = found far more contrived solutions like regex matches. Eventually I settled= on monkey patching string with a Numeric? method using Float(self)! =3D ni= l rescue false.

Is there a better way to go about this? If not, can we get something add= ed to the core?

Thanks for your time,

Brandon

--047d7b33d6504661bb04d1d9e0b3--