Skip to content

Instantly share code, notes, and snippets.

@BanzaiMan
Created October 10, 2009 04:22
Show Gist options
  • Select an option

  • Save BanzaiMan/206593 to your computer and use it in GitHub Desktop.

Select an option

Save BanzaiMan/206593 to your computer and use it in GitHub Desktop.
surfboard:~$ ruby -v -e 'p Math.atanh("abc")'
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
-e:1:in `atanh': invalid value for Float(): "abc" (ArgumentError)
from -e:1
surfboard:~$ ruby19 -v -e 'p Math.atanh("abc")'
ruby 1.9.2dev (2009-10-09 trunk 25274) [x86_64-darwin10.0.0]
-e:1:in `atanh': can't convert String into Float (TypeError)
from -e:1:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment