How to Check Decimal in Ruby


#1

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.


#2

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