method
numerator
v1_9_3_125 -
Show latest stable
- Class:
Float
numerator()public
Returns the numerator. The result is machine dependent.
For example:
n = 0.3.numerator #=> 5404319552844595 d = 0.3.denominator #=> 18014398509481984 n.fdiv(d) #=> 0.3