APIdock
/
Ruby
/
Browse
About
method
numerator
v2_4_6
-
Show latest stable
- Class:
Integer
numerator
()
public
Returns self.
Show source
static VALUE integer_numerator(VALUE self) { return self; }
Related methods
Instance methods
%
&
*
**
+
-
-@
/
<
<<
<=
<=>
==
===
>
>=
>>
[]
^
abs
bit_length
ceil
chr
coerce
dclone
denominator
digits
div
divmod
downto
even?
fdiv
floor
gcd
gcdlcm
inspect
integer?
lcm
magnitude
modulo
next
numerator
odd?
ord
pred
prime?
prime_division
rationalize
remainder
round
size
succ
times
to_bn
to_d
to_f
to_i
to_int
to_r
to_s
truncate
upto
|
~
Class methods
each_prime
from_prime_division