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.
Salai K. (Guest)
on 2009-04-05 16: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.
Robert K. (Guest)
on 2009-04-05 16:30
(Received via mailing list)
On 05.04.2009 14:06, Thomas K. 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.