Skip to content

Commit

Permalink
More BigDecimal spec fixes in 1.9 mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
BanzaiMan committed Jun 9, 2010
1 parent 4f15939 commit 8dc285e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec/tags/1.9/ruby/library/bigdecimal/floor_tags.txt

This file was deleted.

7 changes: 7 additions & 0 deletions src/org/jruby/RubyBigDecimal.java
Expand Up @@ -991,6 +991,13 @@ public IRubyObject floor(IRubyObject[]args) {
return this; return this;
} }
} }

@JRubyMethod(name = "floor", optional =1, compat = CompatVersion.RUBY1_9)
public IRubyObject floor19(IRubyObject[] args) {
if (isNaN || isInfinity())
throw getRuntime().newFloatDomainError("Computation results to '" + to_s(args).asJavaString() + "'");
return floor(args);
}


@JRubyMethod(name = "frac") @JRubyMethod(name = "frac")
public IRubyObject frac() { public IRubyObject frac() {
Expand Down

0 comments on commit 8dc285e

Please sign in to comment.