Skip to content

Instantly share code, notes, and snippets.

@benphelps
Created November 12, 2012 09:17
Show Gist options
  • Save benphelps/4058310 to your computer and use it in GitHub Desktop.
Save benphelps/4058310 to your computer and use it in GitHub Desktop.
1.9.3 (main):0 > numberize ['1','2.2','a', '-2']
=> [
[0] 1,
[1] 2.2,
[2] "a",
[3] -2
]
1.9.3 (main):0 > numberize ['1','2.2','a', '-2', '-2.2']
=> [
[0] 1,
[1] 2.2,
[2] "a",
[3] -2,
[4] "-2.2"
]
1.9.3 (main):0 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment