How to Check Decimal in Ruby

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.

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs