class Stellar::Util::ContinuedFraction::Fraction

Attributes

d[R]
n[R]

Public Class Methods

new(n,d) click to toggle source
# File lib/stellar/util/continued_fraction.rb, line 85
def initialize(n,d)
  @n = n
  @d = d
end

Public Instance Methods

to_r() click to toggle source
# File lib/stellar/util/continued_fraction.rb, line 90
def to_r
  Rational(@n, @d)
end