C
cap
ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-linux]
=> 5
maybe it's a mistak?
=> 5
maybe it's a mistak?
=> 11
=> 5
cap said:ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-linux]
=> 11
you're calling "5".to_i(+"6".to_i), ie. "5".to_i(6),
ie. "5" converted in base 6, ie 5
Thanks very much!cap said:ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-linux]
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.