numerator

flo.numerator â integer
Instance Public methods

Returns the numerator. The result is machine dependent.

1
2
3
n = 0.3.numerator    #=> 5404319552844595
d = 0.3.denominator  #=> 18014398509481984
n.fdiv(d)            #=> 0.3
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.