Class: Rational
Instance Method Summary collapse
-
#to_d ⇒ BigDecimal
Converts the rational to a BigDecimal.
Instance Method Details
#to_d ⇒ BigDecimal
Converts the rational to a BigDecimal
581 582 583 |
# File 'lib/ruby/jruby_hack.rb', line 581 def to_d numerator.to_d / denominator.to_d end |