Forum: Ruby How to Check Decimal in Ruby.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1b24200f38846a548d6b22ab6ae0c7e7?d=identicon&s=25 Salai Koko (koko)
on 2009-04-05 14:07
(Received via mailing list)
Dear all,

I would like to know, how can I check the "Decimal" value (0 to 9) with
gets
method, without any converting ruby builtin method.

regards,

Salai.
E0d864d9677f3c1482a20152b7cac0e2?d=identicon&s=25 Robert Klemme (Guest)
on 2009-04-05 14:30
(Received via mailing list)
On 05.04.2009 14:06, Thomas Khaipi wrote:
> I would like to know, how can I check the "Decimal" value (0 to 9) with gets
> method, without any converting ruby builtin method.

You can use a regular expression.

Kind regards

  robert
This topic is locked and can not be replied to.