[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to Check Decimal in Ruby.

Salai Khine

4/5/2009 12:06:00 PM

[Note: parts of this message were removed to make it a legal post.]

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.

1 Answer

Robert Klemme

4/5/2009 12:28:00 PM

0

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