Skip to content

Instantly share code, notes, and snippets.

@qmx
Created April 29, 2012 19:43
Show Gist options
  • Save qmx/2552909 to your computer and use it in GitHub Desktop.
Save qmx/2552909 to your computer and use it in GitHub Desktop.
qmx@mirkwood /Volumes/v2/git/dynjs ±this_is_it⚡ » jruby -S irb
1.9.3-p125 :001 > require 'bigdecimal'
=> true
1.9.3-p125 :002 > BigDecimal.new(1.0)
TypeError: can't convert Float into String
from org/jruby/ext/bigdecimal/RubyBigDecimal.java:443:in `new'
from (irb):2:in `evaluate'
from org/jruby/RubyKernel.java:1037:in `eval'
from org/jruby/RubyKernel.java:1353:in `loop'
from org/jruby/RubyKernel.java:1146:in `catch'
from org/jruby/RubyKernel.java:1146:in `catch'
from /Volumes/v2/git/jruby/bin/jirb:13:in `(root)'
1.9.3p125 :001 > require 'bigdecimal'
=> true
1.9.3p125 :002 > BigDecimal.new(1.0)
ArgumentError: can't omit precision for a Rational.
from (irb):2:in `new'
from (irb):2
from /Users/qmx/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment