Skip to content

Commit

Permalink
Showing 3 changed files with 8 additions and 10 deletions.
5 changes: 0 additions & 5 deletions spec/truffle/tags/core/numeric/negative_tags.txt

This file was deleted.

5 changes: 0 additions & 5 deletions spec/truffle/tags/core/numeric/positive_tags.txt

This file was deleted.

8 changes: 8 additions & 0 deletions truffle/src/main/ruby/core/rubinius/common/numeric.rb
Original file line number Diff line number Diff line change
@@ -137,6 +137,14 @@ def nonzero?
zero? ? nil : self
end

def positive?
self > 0
end

def negative?
self < 0
end

def round
to_f.round
end

0 comments on commit 7def195

Please sign in to comment.