Skip to content

Commit

Permalink
Add Number#/(other : BigFloat) overload (#5437)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija authored and RX14 committed Jan 5, 2018
1 parent 1707940 commit 1d52841
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/big/big_float.cr
Expand Up @@ -265,6 +265,10 @@ struct Number
other * self
end

def /(other : BigFloat)
to_big_f / other
end

def to_big_f
BigFloat.new(self)
end
Expand Down

0 comments on commit 1d52841

Please sign in to comment.