Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Integer(nil) and checking numericality
eastcoastcoder
3/10/2006 3:13:00 AM
Why does Integer(nil) return 0? Isn't the point of Integer to assert
that the arg is actually an integer? (If we just want a best guess, we
can do '323aaadsfwefsd'.to_i or ''.to_i )/
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Integer(nil) and checking numericality
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password