Skip to content

Instantly share code, notes, and snippets.

@BanzaiMan
Created May 25, 2010 21:55
Show Gist options
  • Select an option

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

Select an option

Save BanzaiMan/413750 to your computer and use it in GitHub Desktop.
[system]:jruby[git:master] $ ruby1.9 -ve 'p 12345678901234567890123456789012.0.to_s'
ruby 1.9.3dev (2010-05-21 trunk 27938) [x86_64-darwin10.3.0]
"12345678901234567000000000000000.0"
[system]:jruby[git:master] $ ruby1.9 -ve 'p 123456789012345678901234567890123.0.to_s'
ruby 1.9.3dev (2010-05-21 trunk 27938) [x86_64-darwin10.3.0]
"1.2345678901234569e+32"
[system]:jruby[git:master] $ ruby -ve 'p 12345678901234567890123456789012.0.to_s'
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
"1.23456789012346e+31"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment