Skip to content

Commit

Permalink
Define isfinite(::Irrational) = true
Browse files Browse the repository at this point in the history
  • Loading branch information
waldyrious committed Jul 31, 2015
1 parent f0328c8 commit 0f049e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/irrationals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ end
<=(x::Irrational,y::Rational) = x < y
<=(x::Rational,y::Irrational) = x < y

isfinite(::Irrational) = true

hash(x::Irrational, h::UInt) = 3*object_id(x) - h

Expand Down

0 comments on commit 0f049e1

Please sign in to comment.